The mmcv/mmdet/mmseg/detectron2 wrapper's module type is not present in the default sparse_parameter_list. You can add the required module->parameter mapping with the custom_layer_dict argument to init_model_for_pruning().
You can see how this argument is used here.
To do this, you'll need to call the 3 constituent functions inside of prune_trained_model() (instead of this convenience function) so you can call init_model_for_pruning() directly to supply your custom_layer_dict.
The mmcv/mmdet/mmseg/detectron2 wrapper's module type is not present in the default sparse_parameter_list. You can add the required module->parameter mapping with the custom_layer_dict argument to init_model_for_pruning().
You can see how this argument is used here.
To do this, you'll need to call the
3 constituent functions
inside of prune_trained_model() (instead of this convenience function) so you can call init_model_for_pruning() directly to supply your custom_layer_dict.apex/contrib/sparsity/asp.py