You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning :)
I am new to pruning and to model compression in general and I have been playing with mmrazor and took as an example the following config from pretrain. _base_ = ['mmpretrain::resnet/resnet18_8xb32_in1k.py']
I added to this config the pruning related elements
Then ran a short training on one image using ! timeout 2m python mmrazor/tools/train.py $pruning_cfg_path --work-dir 'demo/pruning'
Then run the following
Here is the onnx visualized on Netron. It has those gatherND operations everywhere, plus it seems the masks (from Mutable Channel Units ?) are still there. Is this really the deployed model in the final pruning stage or is there something I am missing ? I would imagine a model similar to the base Resnet18 but with lower number of channels for considered convolution layers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good morning :)
I am new to pruning and to model compression in general and I have been playing with mmrazor and took as an example the following config from pretrain.
_base_ = ['mmpretrain::resnet/resnet18_8xb32_in1k.py']
I added to this config the pruning related elements
Then ran a short training on one image using
! timeout 2m python mmrazor/tools/train.py $pruning_cfg_path --work-dir 'demo/pruning'
Then run the following
and finally
Here is the onnx visualized on Netron. It has those gatherND operations everywhere, plus it seems the masks (from Mutable Channel Units ?) are still there. Is this really the deployed model in the final pruning stage or is there something I am missing ? I would imagine a model similar to the base Resnet18 but with lower number of channels for considered convolution layers.
Thank you very much in advance :),
Mathieu
Beta Was this translation helpful? Give feedback.
All reactions