Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'ldm.models' #87

Open
hejh8 opened this issue Oct 19, 2023 · 3 comments
Open

No module named 'ldm.models' #87

hejh8 opened this issue Oct 19, 2023 · 3 comments

Comments

@hejh8
Copy link

hejh8 commented Oct 19, 2023

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

@hdparmar
Copy link

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.

@drzraf
Copy link

drzraf commented Nov 1, 2023

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

@drzraf
Copy link

drzraf commented Nov 1, 2023

dup' of #86 and #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants