ZebraPose icon indicating copy to clipboard operation
ZebraPose copied to clipboard

loss for predicted binary coding

Open hrkita opened this issue 1 year ago • 2 comments

Hi,

If I want to compare the entire mask to obtain a loss function, what part of the code do I need to modify? Or do I need to retrain the ResNet34 model?

if predict_entire_mask: loss_m = maskLoss(pred_mask_prob, entire_masks) else: loss_m = maskLoss(pred_mask_prob, masks)

Best, Joa

hrkita avatar Dec 29 '23 07:12 hrkita

If you set this arg as True, the network will predict entire mask instead of visible mask.

suyz526 avatar Jan 10 '24 15:01 suyz526

Okay, I will give it a try.Thanks!

hrkita avatar Jan 14 '24 01:01 hrkita