ModuleNotFoundError: no module named "ldm"
Nughu opened this issue · 2 comments
Nughu commented
I generated the conda environment using environment.yaml, and activated it in my docker console. When I try to run txt2img.py, I get the
ModuleNotFoundError: no module named "ldm".
According to the tutorial I followed, this capability should have been set up by creating the conda env. What am I missing?
naturalethic commented
While txt2img
worked fine for me, img2img
was presenting this error when running. The fix is to insert this line somewhere above the ldm import:
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
Nughu commented
@naturalethic thank you so much, this solved it!