Giter Club home page Giter Club logo

trt_yolov3's Introduction

pull container 19.02 py2 / 19.12 py3

docker pull nvcr.io/nvidia/tensorrt:19.02-py2
docker pull nvcr.io/nvidia/tensorrt:19.12-py3

Run conatainer from 1-Step mini build

docker build -t trt_yolov3 .
docker run --rm -it --privileged --runtime=nvidia trt_yolov3 bash
python3 onnx_to_tensorrt.py --build --vram 8 --max_batch_size 64 -p fp16

Run container from scratch

--privileged --runtime=nvidia

(19.02 for yolo2onnx , TRT 5.0.2 , onnx 1.3.0 or 1.2.3 )

docker run --rm -it --privileged --runtime=nvidia -v ~/Desktop/python:/sharefolder nvcr.io/nvidia/tensorrt:19.02-py2 bash
pip install wget onnx==1.3.0 
cd tensorrt/samples/python/yolov3_onnx/ && python yolov3_to_onnx.py
cp yolov3.onnx /sharefolder/

(19.12 for onnx2trt , TRT 6.0.1.8 , onnx 1.7.0)

docker run --rm -it --privileged --runtime=nvidia -v ~/Desktop/python:/sharefolder nvcr.io/nvidia/tensorrt:19.12-py3 bash
pip3 install wget onnx scipy line_profiler
git clone https://github.com/royinx/trt_yolov3.git
cp /sharefolder/yolov3.onnx trt_yolov3/ && cd trt_yolov3
python onnx_to_tensorrt.py --build --vram 8 --max_batch_size 64 -p fp16

Others

Debug core dump (inside container)

commit new image and run at a new container

install gdb apt-get update && apt-get -y install gdb python2.7-dbg

$ cd

$ gdb python

(gdb) run XXX.py
(gdb) generate-core-file
(gdb) py-bt
(gdb) q

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.