Error in example
#4
by
xalex
- opened
Using "samples" like in the example code:
images = ldm([prompt], num_inference_steps=50, eta=0.3, guidance_scale=6)["sample"]
is deprecated and I even get an KeyError
exception (which is probably a bug, as it should only have a DeprectionWarning
).
Replacing ["sample"]
with .images
fixes the example code.
Hi @xalex , thanks for reaching out! This was because of a breaking change in the latest version of π€ diffusers: https://github.com/huggingface/diffusers/releases/tag/v0.3.0
I just opened a PR to fix the example in the model card.
pcuenq
changed discussion status to
closed