stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

No module found named 'optimizedSD'

Open kmcnayr opened this issue 2 years ago • 3 comments

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'

kmcnayr avatar Nov 05 '22 12:11 kmcnayr

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

darraghoriordan avatar Nov 07 '22 11:11 darraghoriordan

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

Thank you! What does this do, exactly?

jerrykurtin avatar Feb 28 '23 19:02 jerrykurtin

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

works for me, thanks

ForgetAll avatar Apr 14 '23 02:04 ForgetAll