basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 469 forks source link

ModuleNotFoundError: No module named 'optimUtils' -- From CompVis/stable-diffusion #112

Closed nathananderson98 closed 2 years ago

nathananderson98 commented 2 years ago

From the README: All the modified files are in the optimizedSD folder, so if you have already cloned the original repository you can just download and copy this folder into the original instead of cloning the entire repo.

I started from the main repo, and came here with my 8Gb VRAM card :(

I copied in the optimized txt2img.py, which should work with my whole envirnment setup, but my output looks like:

Traceback (most recent call last):
  File "scripts/txt2img_optimized.py", line 16, in <module>
    from optimUtils import split_weighted_subprompts, logger
ModuleNotFoundError: No module named 'optimUtils'

Googling around I can't find how this module can be installed. Any help with this? Thanks.

Disa-Kizonda commented 2 years ago

copy file to the same folder where txt2img image

nathananderson98 commented 2 years ago

Yup, could add a note in the Readme if using the base stable diffusion that that file is needed also for the optimized scrpits to run.