light-and-ray / sd-webui-replacer

A tab for sd-webui for replacing objects in pictures or videos using detection prompt
207 stars 11 forks source link

How can specific mask number like in ReACTOR #103

Closed ruichang555 closed 1 month ago

ruichang555 commented 1 month ago

I am using replacer and replacer video. When there are multiple faces, the SAM will detect all the faces in the image (assuming I am using "face" as detection prompt) and created masks for each face. Even I set mask number to 1. If I set detection prompt like "face on the right", the mask will cover the entire face and body of the person on the right.

Is there a way to specify the mask number like 0,1,2 in REACTOR so that I can inpaint specific mask?

light-and-ray commented 1 month ago

There is no way to make this, because SAM works in a very different way. Reactor uses models made special for faces