GithubHelp home page GithubHelp logo

dataxujing / solov2.tensorrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangjinsong3/solov2.tensorrt

0.0 1.0 0.0 6.26 MB

SOLOv2 on onnx & tensorRT

License: Other

Python 93.29% Shell 0.10% Dockerfile 0.03% C++ 2.27% Cuda 4.32%

solov2.tensorrt's Introduction

SOLOv2.tensorRT:

NOTE: code based on WXinlong/SOLO

add support to TensorRT inference

  • onnxruntime
  • tensorRT
  • full_dims and dynamic shape
  • postprocess without torch
git clone https://github.com/zhangjinsong3/SOLOv2.tensorRT

Requirements

  • pytorch 1.4+
  • torchvision 0.5+
  • gcc 4.9+
  • tensorRT 7.2.1
  • onnx-tensorrt 7.2
  • onnx 1.8.0
  • onnxruntime 1.6.0

Train

  • set ONNX_EXPORT=False in mmdet.deploy_params.py
  • Training according to the steps in SOLO🔗

Deploy [detail🔗]

  • set ONNX_EXPORT=True in mmdet.deploy_params.py

  • cd deploy

  • run inference on onnxruntime & tensorRT

# run on pytorch
python inference_demo.py

# Convert pth to onnx model, then run on onnxrt & trt
# SOLOv2 light R34
python onnx_exporter_solov2.py ../configs/solov2/solov2_light_448_r34_fpn_8gpu_3x.py  weights/SOLOv2_light_R34.onnx --checkpoint ../weights/SOLOv2_LIGHT_448_R34_3x.pth --shape 448 672
python inference_on_onnxrt_trt_solov2.py

solov2.tensorrt's People

Contributors

hellock avatar yhcao6 avatar oceanpang avatar wxinlong avatar thangvubk avatar myownskyw7 avatar erotemic avatar taokong avatar wswday avatar zwwwayne avatar korabelnikov avatar lindahua avatar zhangjinsong3 avatar innerlee avatar michaelisc avatar borda avatar ternaus avatar sovrasov avatar zhihuagao avatar eugenelawrence avatar youkaichao avatar tyomj avatar liushuchun avatar gfjiangly avatar donnyyou avatar wondervictor avatar dxist avatar patrick-llgc avatar mattdawkins avatar melikovk 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.