GithubHelp home page GithubHelp logo

yolov5_tensorrt's Introduction

yolov5_tensorRT

1.Export tensorrt model

git clone https://github.com/ycdhqzhiai/yolov5_tensorRT
cd yolov5_tensorRT
pip install -r requirements.txt

复制export.py到原始yolov5仓库models目录下
python models/export.py 生成yolov5s.onnx,拷贝到weights目录下

2.run demo

python main.py

3.tensorrt int8 convert

python  convert_int8.py --onnx_file  weights/yolov5s.onnx  --data_path $your coustom datasets

yolov5_tensorrt's People

Contributors

ycdhqzhiai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yolov5_tensorrt's Issues

ValueError: too many values to unpack (expected 4)

Hi, thank you for sharing the code. I have got this error. any idea ? I tried to make sure that versions doesn't mis-match but still got this.

(1, 3, 80, 80, 6)
Traceback (most recent call last):
  File "main_yolov5.py", line 116, in <module>
    dets = yolonet.detect(srcimg)
  File "main_yolov5.py", line 89, in detect
    bs, _, ny, nx = outs[i].shape  # x(bs,255,20,20) to x(bs,3,20,20,85)
ValueError: too many values to unpack (expected 4)

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.