stablediffusion icon indicating copy to clipboard operation
stablediffusion copied to clipboard

AssertionError: currently only supporting "eps" and "x0"

Open zhiboniu opened this issue 1 year ago • 4 comments

I run the command in the guide as this:

python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt <path/to/768model.ckpt/> --config configs/stable-diffusion/v2-inference-v.yaml --H 768 --W 768  

but got this error: AssertionError: currently only supporting "eps" and "x0"

how can I solve it?

zhiboniu avatar Mar 24 '23 12:03 zhiboniu

Is there a stable diffusionv1 installation library in your python environment, and the code in that library is referenced at runtime, so an error is reported, try pip uninstall latent-diffusion

jhqxxx avatar Mar 25 '23 12:03 jhqxxx

When we do that, it resulting to "ModuleNotFoundError: No module named 'ldm'"

dennyX99 avatar May 16 '23 09:05 dennyX99

after uninstall, need reinstall this project, pip install -e .

jhqxxx avatar May 17 '23 08:05 jhqxxx

I guess the code currently does not support v-sampling: https://github.com/Stability-AI/stablediffusion/blob/main/ldm/models/diffusion/ddpm.py#L920

IceClear avatar Jun 08 '23 16:06 IceClear