Code Monkey home page Code Monkey logo

yolov3-channel-pruning's Introduction

yolov3-channel-pruning

Update:

补充prune_utils.py. 在自己的数据集上,剪枝30%-50%, mAP不变。

requirements:

  • numpy>=1.13
  • tensorboardX
pip install tensorboardX

or

git clone https://github.com/lanpa/tensorboardX && cd tensorboardX && python setup.py install
  • albumentations
pip install albumentations

or

conda install -c conda-forge imgaug
conda install albumentations -c albumentations
  • terminaltables
pip install terminaltables
  • tqdm
  • torch
  • random
  • matplotlib
  • .......

Run

python train.py --model_def config/yolov3.cfg

python train.py --model_def config/yolov3.cfg -sr

python test_prune.py

python train.py --model_def config/prune_yolov3.cfg -pre checkpoints/prune_yolov3_ckpt.pth

Reference:

YOLOv3-model-pruning(感谢Lam1360给了很多帮助)

yolov3-network-slimming

PyTorch-YOLOv3

yolov3-channel-pruning's People

Contributors

violet17 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.