소스 검색

debug QFL

yjh0410 2 년 전
부모
커밋
b9470e40a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/detectors/yolox_plus/loss.py

+ 1 - 1
models/detectors/yolox_plus/loss.py

@@ -65,7 +65,7 @@ class Criterion(object):
             # check target
             if len(tgt_labels) == 0 or tgt_boxs.max().item() == 0.:
                 # There is no valid gt
-                gt_label = cls_preds.new_full((1, num_anchors), self.num_classes), #[1, M,]
+                gt_label = cls_preds.new_full((1, num_anchors), self.num_classes)  #[1, M,]
                 gt_score = cls_preds.new_zeros((1, num_anchors, self.num_classes)) #[1, M, C]
                 gt_box = cls_preds.new_zeros((1, num_anchors, 4))                  #[1, M, 4]
                 fg_mask = cls_preds.new_zeros(1, num_anchors).bool()               #[1, M,]