open-mmlab / mmrazor

OpenMMLab Model Compression Toolbox and Benchmark.
https://mmrazor.readthedocs.io/en/latest/
Apache License 2.0
1.45k stars 227 forks source link

KeyError: 'default_scope #525

Open scuizhibin opened 1 year ago

scuizhibin commented 1 year ago

运行例子中的python tools/pruning/get_channel_units.py configs/pruning/mmdet/dcff/dcff_faster_rcnn_resnet50_fpn.py -c -i --output-path=./resnet_det.json 出现问题: raise KeyError(name) KeyError: 'default_scope'

LKJacky commented 1 year ago

configs/pruning/mmdet/dcff/dcff_faster_rcnn_resnet50_fpn.py is not a valid config for training.

Please try python tools/pruning/get_channel_units.py configs/pruning/mmdet/dcff/dcff_faster_rcnn_resnet50_8xb4_coco.py -c -i --output-path=./resnet_det.json.

dongyu0410 commented 6 months ago

@LKJacky Can you tell me why configs/pruning/mmdet/dcff/dcff_faster_rcnn_resnet50_fpn.py is not a valid config for training.is not a valid config for training. I'm also having this problem when compressing my own model. So I'd like to ask you what the config of your standard trainable model looks like