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

Inpainting

Open vijishmadhavan opened this issue 3 years ago • 7 comments

https://gist.github.com/vijishmadhavan/91c79b403fbac327fa950c35a40b18f9

I tried to create inpainting but fails, can somebody check.

seed_228024_00006 seed_443299_00005

vijishmadhavan avatar Aug 29 '22 15:08 vijishmadhavan

It's been added with the recent update and works fairly well, default strength at 0.99 is a bit too high though, should be something like 0.75 instead. Depends on the image though, in some cases 0.9 worked better

TheEnhas avatar Aug 29 '22 18:08 TheEnhas

I guess the issue is in the code that I have written, I tried to alter the strength but did not work.

vijishmadhavan avatar Aug 29 '22 19:08 vijishmadhavan

It was a good effort nonetheless. Exploring your code let me understand more of the base img2img code, so thank you for that.

GucciFlipFlops1917 avatar Aug 29 '22 20:08 GucciFlipFlops1917

Sorry but what is latent scale? I am trying this inpainting new feature update and trying to understand how it responds. Thank you for doing this.

agustincaniglia avatar Aug 30 '22 04:08 agustincaniglia

Sorry but what is latent scale? I am trying this inpainting new feature update and trying to understand how it responds. Thank you for doing this.

Hi, please ignore latent_scale for now (set it to 1), will remove it in the next update. (The code currently uses DDIM sampling and latent_scale is for a different sampler)

basujindal avatar Aug 30 '22 12:08 basujindal

Hello, great job! Can you please tell me how to add a ready-made mask for the image?

nnmbzr avatar Aug 31 '22 01:08 nnmbzr

Hello, great job! Can you please tell me how to add a ready-made mask for the image?

Hi, I will add this feature for the gradio interface in a day or two. Cheers!

basujindal avatar Sep 01 '22 07:09 basujindal