Open gaoyixuan111 opened 4 months ago
@JackAILab When I restarted training on your model, pre-training, I found that the printed facial_loss has been consistently negative around -0.004, I looked at the code and found that in the ID preserving network BalancedL1Loss returns background_loss - object_loss, and I'm not sure if Is it normal for facial_loss to be negative?
@JackAILab In the definition of the
masks_for_unique_values
function in yourfunctions.py
script, if theparsing_mask
passed in does not contain any pixels withvalue=0
, then the generatedparsing_mask_list
will not have the key "WithoutBackground". This means that in the__getitem__
method, you cannot generate the correspondingmulti_clip_image
. Could you add a solution for this issue?body_raw_image = fetch_mask_raw_image(raw_image,parsing_mask_list["WithoutBackground"]) body_clip_image = self.clip_image_processor(images=body_raw_image, return_tensors="pt").pixel_values multi_clip_image = torch.cat([clip_image, body_clip_image], dim=1)