justinpinkney / stable-diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'ldm.models'

hejh8 opened this issue · comments

from ldm.models.diffusion.ddim import DDIMSampler
ModuleNotFoundError: No module named 'ldm.models'; 'ldm' is not a package

Strange, are you in the path of ldm or are you outside of the path? You must be in the stable-diffusion directory.
If you are outside, then probably you need to set your PYTHONPATH to the ldm path with a environment variable.

Same here, inside a venv.
But works if doing export PYTHONPATH=$(pwd) first

dup' of #86 and #75