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 found named 'optimizedSD' #219

Open
kmcnayr opened this issue Nov 5, 2022 · 3 comments
Open

No module found named 'optimizedSD' #219

kmcnayr opened this issue Nov 5, 2022 · 3 comments

Comments

@kmcnayr
Copy link

kmcnayr commented Nov 5, 2022

I did not use Docker and just installed everything in a virtualenv. getting no module error. anyone have any ideas?

Global seed set to 27
Loading model from models/ldm/stable-diffusion-v1/model.ckpt
Global Step: 470000
Traceback (most recent call last):
File "optimizedSD/optimized_txt2img.py", line 210, in
model = instantiate_from_config(config.modelUNet)
File "optimSD/optimizedSD/ldm/util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "optimSD/optimizedSD/ldm/util.py", line 93, in get_obj_from_str
return getattr(importlib.import_module(module, package=None), cls)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'optimizedSD'

@darraghoriordan
Copy link

you have to pip install -e . in the "root" of stable-diffusion

@jerrykurtin
Copy link

you have to pip install -e . in the "root" of stable-diffusion

Thank you! What does this do, exactly?

@ForgetAll
Copy link

you have to pip install -e . in the "root" of stable-diffusion

works for me, thanks

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

4 participants