huggingface / huggingface/diffusers

error in using EDMDPMSolverMultistepScheduler in kolors model

Aperta
#8,997 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
stale
Lingua principale
Python
Stelle
34.5k
Fork
7.3k
Merge medio
3g 3h
PR unite (30g)
91

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, pytorch
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.