pose-with-style icon indicating copy to clipboard operation
pose-with-style copied to clipboard

How to specify custom transfer mask?

Open netsalesbg-ltd opened this issue 1 year ago • 3 comments

In the readme you said you we can use custom transfer mask, but couldn't find any additional info about how to do that? So how can I specify custom transfer mask?

netsalesbg-ltd avatar May 23 '23 10:05 netsalesbg-ltd

You can think of it as some sort of copy paste. The mask will tell you the region. You can draw the mask your self of use human parsing to specify the garment masks and then utilize this to select your region of interest.

BadourAlBahar avatar May 23 '23 12:05 BadourAlBahar

I get that, I have already setup a human parser, I get the garment, but I am having trouble replacing part_mask in GarmentTransferSpatialAppearanceEncoder. Cannot understand what format it should be, for the rest of the garment transfer script to be able to use it.

Edit, to clarify. This is the result I currently get. image

Since the model copies based on the torso from densepose, if the source image has a short top, part of the bottom is also copied over to the target. Now, I am using human parsing to separate the top correctly. image

But cannot figure out how to implement it in the code, I cannot understand the result of GarmentTransferSpatialAppearanceEncoder. Please can you explain the output of GarmentTransferSpatialAppearanceEncoder and how I can use the mask from human parsing in the Generator. Thank you!

netsalesbg-ltd avatar May 23 '23 14:05 netsalesbg-ltd

@netsalesbg-ltd Hi, have you been able to solve it?

i-amgeek avatar Jul 17 '23 17:07 i-amgeek