This repository is a prunable implementation of RepVGG. We refer to the official RMNet repository.
To install requirements:
pip install torch torchvision
To prune the models, run this command:
python train_pruning.py --sr 1e-4 --threshold 5e-4 # sparse training
python train_pruning.py --eval xxx/ckpt.pth # eval
python train_pruning.py --finetune xxx/ckpt.pth # pruned finetuning
Our code is based on RMNet, RepVGG and nni/amc pruning