Mask not fully zeroing out the background #272
Unanswered
austinfujimori
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I'm applying a binary mask over the face of a person, using this code from the cli_lora_pti.py file:
However, I notice during training that the background is still partially being fitted in. What could be causing this?
Some more information, all I do to the masks before this is convert it to 512x512 tensor, no mean/standard deviation normalization, pixel values from 0 to 255 are just scaled to 0 and 1.
The instance image pixel values however undergo these transformations before being encoded to 64x64 latent:
transforms.Resize(size, interpolation=transforms.InterpolationMode.BILINEAR),
transforms.CenterCrop(size) if center_crop else transforms.RandomCrop(size),
transforms.ToTensor(),
transforms.Normalize([0.5], [0.5]).
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions