在启动剪裁时,报错AssertionError: only support yaml files for now
Created by: llzhaoshuo
python slim/prune/prune.py -c slim/prune/yolov3_r50vd_dcn_db_iouaware_obj365_pretrained_coco.yaml --pruned_params "yolo_block.0.0.0.conv.weights,yolo_block.0.0.1.conv.weights,yolo_block.0.1.0.conv.weights,yolo_block.0.1.1.conv.weights,yolo_block.0.2.conv.weights,yolo_block.0.tip.conv.weights,yolo_block.1.0.0.conv.weights,yolo_block.1.0.1.conv.weights,yolo_block.1.1.0.conv.weights,yolo_block.1.1.1.conv.weights,yolo_block.1.2.conv.weights,yolo_block.1.tip.conv.weights,yolo_block.2.0.0.conv.weights,yolo_block.2.0.1.conv.weights,yolo_block.2.1.0.conv.weights,yolo_block.2.1.1.conv.weights,yolo_block.2.2.conv.weights,yolo_block.2.tip.conv.weights" --pruned_ratios="0.9,0.9,0.9,0.9,0.1,0.6,0.1,0.1,0.3,0.2,0.2,0.1,0.1,0.9,0.9,0.1,0.6,0.7"
2020-06-11 16:41:02,575-WARNING: If you want to use DDPG in RLNAS, please pip install parl first. Now states: No module named 'parl'
2020-06-11 16:41:02,584-WARNING: If you want to use training-aware and post-training quantization, please use Paddle >= 1.8.0 or develop version
Traceback (most recent call last):
File "slim/prune/prune.py", line 412, in <module>
main()
File "slim/prune/prune.py", line 60, in main
cfg = load_config(FLAGS.config)
File "/home/lzs/PaddleDetection/ppdet/core/workspace.py", line 82, in load_config
assert ext in ['.yml', '.yaml'], "only support yaml files for now"
AssertionError: only support yaml files for now
我试了.yml和.yaml都会报这个错误,是什么原因呢