Running Stable Diffusion Gives No Module Named 'Ldm. Util' Error
I Am Trying to Run Stable Diffusion with the Following Command Python3 Scripts/Txt2Img. Py --Prompt "Red Velvet Cake" --Plms I Get the Following Error: No...
I am trying to run Stable Diffusion with the following command
python3 scripts/txt2img.py --prompt "red velvet cake" --plms
I get the following error:
No module named 'ldm.util'; 'ldm' is not a package
I tried multiple solutions such as running the command pip install -e .
But, it didn't work
1 Answer
There can be a few potential issues :
Avoid Environment Name
ldmSet Up the Conda Environment
conda env create -f environment.yamlconda activate ldmInstall Project Dependencies: In your project's root folder, run:
pip install -e .if you installed ldm using
pip install ldmuninstall it