|
88 | 88 | 'https://paddlemodels.bj.bcebos.com/object_detection/yolov3_r34.tar', |
89 | 89 | 'YOLOv3_ResNet50_vd_COCO': |
90 | 90 | 'https://paddlemodels.bj.bcebos.com/object_detection/yolov3_r50vd_dcn.tar', |
| 91 | + 'FasterRCNN_ResNet18_COCO': |
| 92 | + 'https://bj.bcebos.com/paddlex/pretrained_weights/faster_rcnn_r18_fpn_1x.tar', |
91 | 93 | 'FasterRCNN_ResNet50_COCO': |
92 | 94 | 'https://paddlemodels.bj.bcebos.com/object_detection/faster_rcnn_r50_fpn_2x.tar', |
93 | 95 | 'FasterRCNN_ResNet50_vd_COCO': |
|
98 | 100 | 'https://paddlemodels.bj.bcebos.com/object_detection/faster_rcnn_r101_vd_fpn_2x.tar', |
99 | 101 | 'FasterRCNN_HRNet_W18_COCO': |
100 | 102 | 'https://paddlemodels.bj.bcebos.com/object_detection/faster_rcnn_hrnetv2p_w18_2x.tar', |
| 103 | + 'MaskRCNN_ResNet18_COCO': |
| 104 | + 'https://bj.bcebos.com/paddlex/pretrained_weights/mask_rcnn_r18_fpn_1x.tar', |
101 | 105 | 'MaskRCNN_ResNet50_COCO': |
102 | 106 | 'https://paddlemodels.bj.bcebos.com/object_detection/mask_rcnn_r50_fpn_2x.tar', |
103 | 107 | 'MaskRCNN_ResNet50_vd_COCO': |
@@ -136,9 +140,10 @@ def get_pretrain_weights(flag, class_name, backbone, save_dir): |
136 | 140 | return flag |
137 | 141 | warning_info = "{} does not support to be finetuned with weights pretrained on the {} dataset, so pretrain_weights is forced to be set to {}" |
138 | 142 | if flag == 'COCO': |
139 | | - if class_name == "FasterRCNN" and backbone in ['ResNet18'] or \ |
140 | | - class_name == "MaskRCNN" and backbone in ['ResNet18'] or \ |
141 | | - class_name == 'DeepLabv3p' and backbone in ['Xception41', 'MobileNetV2_x0.25', 'MobileNetV2_x0.5', 'MobileNetV2_x1.5', 'MobileNetV2_x2.0']: |
| 143 | + if class_name == 'DeepLabv3p' and backbone in [ |
| 144 | + 'Xception41', 'MobileNetV2_x0.25', 'MobileNetV2_x0.5', |
| 145 | + 'MobileNetV2_x1.5', 'MobileNetV2_x2.0' |
| 146 | + ]: |
142 | 147 | model_name = '{}_{}'.format(class_name, backbone) |
143 | 148 | logging.warning(warning_info.format(model_name, flag, 'IMAGENET')) |
144 | 149 | flag = 'IMAGENET' |
|
0 commit comments