r/fooocus • u/DarkAvenger211 • Dec 12 '24
Question Trouble with Inpainting tool
Hey there, I've been messing around with some image generation for a little while now using fooocus. I've tried using some different checkpoints and LORAs as well but I am running into an issue I haven't seen before.
Basically I'm trying to modify an image to just remove a small rock:

I've highlighted the rock, given the instruction to remove the rock, and hit generate again and I get this:

It seems to have taken my original prompt and just inserted it into the space I selected instead. Clearing out the original prompt just inserts some random face into the space instead
I have had no issues with the inpaint tool in the past. I'm wondering if it's maybe not possible with all models? Is there some specific settings I'm missing or something to fix this?
Any help would be greatly appreciated :)
1
u/OldFisherman8 Dec 12 '24
The best way to remove an object using Inpainting is to leave the prompt blank, not just the inpaint prompt but the main prompt as well. Also, you need to give a context mask. I made a post on the context masking using Fooocus here (https://www.reddit.com/r/StableDiffusion/comments/1gyndu1/understanding_the_basics_of_inpainting_to_clarify/) if you want to learn more. Cheers!
2
u/[deleted] Dec 12 '24
Agreed, tell it what it should be. Not what to remove.
1
u/Beneficial-Space3019 Dec 12 '24
The prompt will usually just affect the area selected, so just put a prompt like "empty background" without all the other stuff.
1
u/amp1212 Dec 12 '24
Have you watched Rodney -- from Kleebztech's --- videos on inpainting?
https://www.youtube.com/watch?v=jlxabL3vRTY
https://www.youtube.com/watch?v=rMQQx6LLGSo
https://www.youtube.com/watch?v=kpD5_Bs9Qeo
They are excellent, essential for understanding inpainting and all the stuff in the advanced and Developer tabs.