瀏覽代碼

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]