Skip to content

Module import error #1

@HadaHector

Description

@HadaHector

I just installed the software, and when I tried using it (text to image), there is a python error, that prevents generating images.

(base) D:\Programs\SDToolkit>acttivate ldm
(ldm) D:\Programs\SDToolkit>cd stable-diffusion
(ldm) D:\Programs\SDToolkit\stable-diffusion>python optimizedSD/optimized_txt2img.py --prompt "a teddy bear with a yellow hat" --sampler plms --H 512 --W 512 --seed 0 --precision autocast --n_iter 1 --n_samples 8 --ddim_steps 50
Traceback (most recent call last):
  File "optimizedSD/optimized_txt2img.py", line 15, in <module>
    from ldm.util import instantiate_from_config
ModuleNotFoundError: No module named 'ldm'
(ldm) D:\Programs\SDToolkit\stable-diffusion

If you need more info, just ask, but I think any hardware info is not necessary for this problem.
I already had python installed, idk if that matters (PATH settings or anything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions