Closed xiehousen closed 2 years ago
It seems that this is a hard code, I will fix it later. Thank you~
resolved in 5e50ee5
@ZwwWayne If I set batch size to 8, the same problem may occur in Instance Segmentation task with this config file.
Is there problem in file kernel_head.py and kernel_update_head.py?
if cls_scores is None: detached_cls_scores = [None] * 2 else: detached_cls_scores = cls_scores.detach() for i in range(num_imgs): assign_result = self.assigner.assign(scaled_mask_preds[i].detach(), detached_cls_scores[i], gt_masks[i], gt_labels[i], img_metas[i])
as can be seen from above code,
len(detached_cls_scores)=2