basujindal / stable-diffusion

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

optimized inpainting without gradio? #132

Open prettydeep opened 2 years ago

prettydeep commented 2 years ago

The gradio interface for optimized img2img is great. I can make 576x1024 images on a gtx1080 8GB, which is impossible with the original script. However, the gradio interface for inpainting is only viable for relatively simple masking.

Would it be possible to make an optimized script for inpainting that runs from command line only, similar to optimized_txt2img.py and optimized_img2img.py? The sample.png and sample_mask.png would load from the input directory as it does in the original SD script.

Something like:

python optimizedSD/optimized_inpaint.py --indir <input_dir> --outdir <output_dir> --steps <steps> --prompt <prompt>

prettydeep commented 2 years ago

The script here works well for 512x512 images. But for other resolutions I get an error.

basujindal commented 2 years ago

Hi, thank you for the suggestion, will try to add the script today. Cheers!