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

optimized inpainting without gradio?

Open prettydeep opened this issue 3 years ago • 2 comments

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 avatar Sep 07 '22 22:09 prettydeep

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

prettydeep avatar Sep 08 '22 13:09 prettydeep

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

basujindal avatar Sep 08 '22 16:09 basujindal