Git Product home page Git Product logo

tensorrt-yolov4's Introduction

OpenJetson

http://openjetson.com/

yolov4

The Pytorch implementation is from ultralytics/yolov3. It can load yolov4.cfg and yolov4.weights(from AlexeyAB/darknet).

Following tricks are used in this yolov4:

  • Three yololayer are implemented in one plugin to improve speed, codes derived from lewes6369/TensorRT-Yolov3
  • Mish activation, implemented in a plugin.
  • Batchnorm layer, implemented by scale layer.

Excute:

1. generate yolov4.wts from pytorch implementation with yolov4.cfg and yolov4.weights

git clone https://github.com/OpenJetson/tensorrt-yolov4.git
git clone https://github.com/ultralytics/yolov3.git
// download yolov4.weights from https://github.com/AlexeyAB/darknet#pre-trained-models
cd yolov3
cp ../tensorrt-yolov4/gen_wts.py .
python gen_wts.py yolov4.weights
// a file 'yolov4.wts' will be generated.
// the master branch of yolov3 should work, if not, you can checkout be87b41aa2fe59be8e62f4b488052b24ad0bd450

2. put yolov4.wts into ./yolov4, build and run

mv yolov4.wts ../tensorrt-yolov4
cd ../tensorrt-yolov4
mkdir build
cd build
cmake ..
make
sudo ./yolov4 -s             // serialize model to plan file i.e. 'yolov4.engine'
sudo ./yolov4 -v             // deserialize plan file and run inference with camera or video.

tensorrt-yolov4's People

Contributors

tuyaliang avatar

Stargazers

MR7mirror 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.