Jack000 / glid-3-xl-stable

stable diffusion training
MIT License
292 stars 39 forks source link

how to use inpaint.pt with img2img and Strength #14

Open loboere opened 1 year ago

loboere commented 1 year ago

it seems that the stength parameter is not available, it would be interesting to have an area where inpaint is needed and an area where the model paints based on the original image via the Strength parameter, and the area where it stays the same as the original image. It could be a three color mask, the white area where the model will not paint, the gray area where the model will paint based on the Strength parameter and the black area where it will inpain.

Jack000 commented 1 year ago

with this repo you can do partial inpainting with the --skip_timesteps flag. So 90% denoising would be --steps 50 --skip_timesteps 5

this only works for inpainting though, and it would apply to the entire inpainting region.