huggingface / huggingface/diffusers

error in using EDMDPMSolverMultistepScheduler in kolors model

Offen
#8,997 1 Kommentar 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

Hi
I want to change kolors default sampler ( euler ) to EDM according [link](https://huggingface.co/Kwai-Kolors/Kolors-diffusers) in below code but my result output image is noise.

```
from diffusers import KolorsPipeline,EDMDPMSolverMultistepScheduler
import torch
pipe = KolorsPipeline.from_pretrained(
"Kwai-Kolors/Kolors-diffusers",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors = True
).to("cuda:3")

pipe.scheduler = EDMDPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
prompt = 'a man'
image = pipe(
prompt=prompt,
negative_prompt="",
guidance_scale=5.0,
num_inference_steps=25,

).images[0]
image.save('result.png')
```

my terminal output :

![Screenshot from 2024-07-28 09-56-50](https://github.com/user-attachments/assets/529068fc-1ee6-4153-b758-aa29931b3605)

and final image :

![result](https://github.com/user-attachments/assets/15fff994-2f6f-49c7-8931-f356c012b631)

Thanks

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the provided KolorsPipeline example and the EDMDPMSolverMultistepScheduler.from_config call, then run the 25-step generation to reproduce the noisy output. Compare the result with the pipeline's default scheduler and review the linked Kolors-diffusers model guidance. Done means identifying whether the scheduler configuration is compatible with Kolors and documenting or fixing the noisy result.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, pytorch
Bereich
machine-learning
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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