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

when i try to use "python scripts/txt2img.py --prompt" i get this

Open BPplays opened this issue 3 years ago • 4 comments

Traceback (most recent call last): File "C:\My Files\Programs\Latent Diffusion\scripts\txt2img.py", line 10, in from ldm.util import instantiate_from_config ModuleNotFoundError: No module named 'ldm'

BPplays avatar Jun 22 '22 13:06 BPplays

@BPplays it can't find the ldm folder/module. replace the top line with this at top of txt2img.py: import argparse, os, sys, glob, uuid sys.path.append('.')

eformx avatar Jun 22 '22 14:06 eformx

That doesn't seem to have fixed it still getting the same error. what exactly is it looking for BTW?

BPplays avatar Jun 23 '22 09:06 BPplays

Simply do pip install -e . in the root directory should get your issue resolved.

taoisu avatar Jul 03 '22 18:07 taoisu