basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 467 forks source link

No module found named 'optimizedSD' #219

Open kmcnayr opened 1 year ago

kmcnayr commented 1 year ago

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 commented 1 year ago

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

jerrykurtin commented 1 year ago

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

Thank you! What does this do, exactly?

ForgetAll commented 1 year ago

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

works for me, thanks