In the code of roi_head.py, loss_mask is only calculated for the base set, because the novel set has no mask tag in the setting. My question is that why valid_masks!=is_base, but valid_masks = torch.logical_and(is_base, gt_proposal), which means that only when a gt is used as a proposal and the gt belongs to the base set, the loss_mask will be calculated.
In the code of
roi_head.py
, loss_mask is only calculated for the base set, because the novel set has no mask tag in the setting. My question is that whyvalid_masks!=is_base
, butvalid_masks = torch.logical_and(is_base, gt_proposal)
, which means that only when a gt is used as a proposal and the gt belongs to the base set, the loss_mask will be calculated.Thank you for your help.