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
There can be a few potential issues :
Avoid Environment Name
ldm
Set Up the Conda Environment
conda env create -f environment.yaml
conda activate ldm
Install Project Dependencies: In your project's root folder, run:
pip install -e .
if you installed ldm using
pip install ldm
uninstall it