This repository provides a cnn channels pruning demo with tensorflow. You can pruning your own model(support conv2d,depthwise conv2d,pool,fc,concat, add ops and so on) defined in modelsets.py. Have a good time!
- Author: Haibo Wang
- Email: dasuda2015@163.com
- Home Page: dasuda.top
Tensorflow >= 1.10.0python >= 3.5opencv-python >= 4.1.0numpy >= 1.14.5matplotlib >= 3.0.3
$ git clone https://github.com/DasudaRunner/SimplePruning.git-
Url:
http://www.cs.toronto.edu/~kriz/cifar.html -
You must use add_layer() API defined in pruner.py to set up your model. More details to modelsets.py -
e.g. model name, learning rate, pruning rate.
$ python full_train.py $ python channels_pruning.py- Conv2d
- FullyConnected
- MaxPooling, AveragePooling
- BatchNormalization
- Activation
- DepthwiseConv2d
- GlobalMaxPooling, GlobalAveragePooling
- Concat
- Add
- Flatten
- 2019.07.24
- Add support for
Addop. - Add support for ResNet18/ResNet34 in modelsets.py.
- Add support for
- 2019.07.16
- Add support for
Concatop. - Add support for DenseNet40 in modelsets.py.
- Add support for
- 2019.07.14
- Reconsitution SimplePruning.
