basujindal / stable-diffusion

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

Cannot use inpainting #193

Open SingingTurnip opened 1 year ago

SingingTurnip commented 1 year ago

I have been using the basujindal sd install and its all been fine except for when I wanted to test out the inpainting thing as it sounded interesting.

As per a guide I followed it says to do the following:

> Run conda activate ldm and then python optimizedSD/inpainting_gradio.py

However the actual file is called inpaint_gradio.py so I run the script as:

C:\SD\stable-diffusion-main\optimizedSD>inpaint_gradio.py

It comes back with:

Traceback (most recent call last): File "C:\SD\stable-diffusion-main\optimizedSD\inpaint_gradio.py", line 9, in <module> import gradio as gr ModuleNotFoundError: No module named 'gradio'

How can I fix this please? If it involves typing more code in conda then can you tell me which folder I need to be typing the code in I e in the main or in SD(root) or whichever.

Thanks 🙂

TheSkallywag commented 1 year ago

pip install gradio