Request: Apply Headswap Only to Masked Person

#21
by Mduster - opened

It would be great if the next version could include a masking feature to specify which person in the image the headswap should be applied to. The mask editor doesn’t seem to work for this — it always swaps all the heads in the image.

You can use the 'inpaint crop' node from the inpaint-cropandstitch module. Feed it with the image + your mask and provide the 'cropped_image' from the node's output to the TextEncodeQwenImageEditPlus node. The output of the generation then will be provided to the 'inpainted_image' input from the 'inpaint stitch' node of the same module. This way you can specify the region with the head you want to swap withouth altering the rest of the image.

Sign up or log in to comment