lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
40.08k stars 5.55k forks source link

Retain selected part of the image in InPaint or in Multiple images #1404

Open Xenomorphdelombre opened 9 months ago

Xenomorphdelombre commented 9 months ago

Hi, first thanks for Fooocus! I love it! I like the InPaint feature and I've been using it to select everything except an object / character and replace everything else.

Could it be possible instead to have a tool to Select / paint over the items you wish not to be regenerated and enter a prompt to replace the non selected area?

I was also wondering if it would be possible to do this but for multiples images. You add two or three images, highlight the items you want to be reused and the rest will be regenerated based on a prompt?

Just an idea, Thanks!

ChineseNorris commented 6 months ago

Hi,

where is the code part for this tool? I think by just negating the mask area would be enough.

Nice work btw