huggingface / huggingface/diffusers

FlaxStableDiffusionImg2ImgPipeline should delete prepare_inputs and provide prepare_text_inputs and prepare_image_inputs

Offen
#9,371 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
stale
Vorherrschende Sprache
Python
Sterne
34.5k
Forks
7.3k
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
91

Beschreibung

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...].
in https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py#L170
prepare_inputs(self, prompt: Union[str, List[str]], image: Union[Image.Image, List[Image.Image]]) accept both prompt and image
But there are prompt_ids and neg_prompt_ids in https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py#L338 which prompt (positive or negative) I should put to prepare_inputs?

**Describe the solution you'd like.**
A clear and concise description of what you want to happen.
like https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py#L180 and https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py#L194
delete prepare_inputs and provide prepare_text_inputs and prepare_image_inputs

**Describe alternatives you've considered.**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context.**
Add any other context or screenshots about the feature request here.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne in src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py, insbesondere bei prepare_inputs und der Verwendung von prompt_ids und neg_prompt_ids in der Nähe der zitierten Zeilen. Vergleiche die separaten Methoden prepare_text_inputs und prepare_image_inputs in src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py. Die Aufgabe ist abgeschlossen, wenn die img2img-Pipeline prepare_inputs nicht mehr bereitstellt und die beiden separaten Vorbereitungsmethoden ohne Unklarheit hinsichtlich positiver und negativer Prompts bereitstellt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
machine-learning
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.