소스 검색

fix key error

jiangjiajun 5 년 전
부모
커밋
f001960b73
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      paddlex/cv/nets/detection/mask_rcnn.py

+ 1 - 1
paddlex/cv/nets/detection/mask_rcnn.py

@@ -204,7 +204,7 @@ class MaskRCNN(object):
                 bg_thresh_hi=self.bg_thresh_hi,
                 bg_thresh_lo=self.bg_thresh_lo,
                 bbox_reg_weights=self.bbox_reg_weights,
-                calass_nums=self.num_classes,
+                class_nums=self.num_classes,
                 use_random=self.rpn_head.use_random)
 
             rois = outputs[0]