Git Product home page Git Product logo

stronger-yolo-pytorch's Introduction

Strongeryolo-pytorch

Introduction

Pytorch implementation of Stronger-Yolo with channel-pruning.

Environment

python3.6, pytorch1.2(1.0+ should be ok)

Quick Start

1 . run the following command to start training, see yacs for more instructions.

python main.py --config-file configs/voc.yaml  EXPER.experiment_name voc_512 devices 0,

2 . run the following command to test

python main.py --config-file configs/voc.yaml EXPER.resume best  do_test True EXPER.experiment_name voc_512 devices 0,1,

Model Pruning

1 . training with sparse regularization

python main.py --config-file configs/voc.yaml  EXPER.experiment_name voc_512_sparse Prune.sparse True Prune.sr 0.01  

2 . Pruning and Finetune, check MobileV2 Pruning for a simplified example.

python main_prune.py --config-file configs/voc_prune.yaml  EXPER.experiment_name voc_512_sparse Prune.sparse True Prune.pruneratio 0.3   

Transfer back to Tensorflow and make it portable.

Check MNN-yolov3.

Performance on VOC2007 Test(mAP)

Model MAP Flops(G) Params(M)
Yolov3 0.765 4.33 6.775
Yolov3-sparsed 0.750 4.33 6.775
Yolov3-Pruned(35% pruned) 0.746 3.00 2.815

Note:
1.All experiments are trained for 60 epochs.
2.All experiments tested with threshold 0.1 in 512 resolution.

Reference

Stronger-Yolo

stronger-yolo-pytorch's People

Contributors

apxlwl avatar

Watchers

 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.