# yolov3-tiny2onnx2trt
Convert your yolov3-tiny model to trt model
# device: nvidia jetson tx2
# jetpack version:jetpack4.2:
ubuntu18.04
tensorrt5.0.6.3
cuda10.0
cudnn7.3.1
# others:
python=2.7
numpy=1.16.1
onnx=1.4.1 (important)
pycuda=2019.1.1
Pillow=6.1.0
wget=3.2
# custom settings
data_processing.py:
line14: LABEL_FILE_PATH = '/home/nvidia/yolov3-tiny2onnx2trt/coco_labels.txt'
line19: CATEGORY_NUM = 80
yolov3_to_onnx.py:
line778: img_size = 416
line784: cfg_file_path = '/home/nvidia/yolov3-tiny2onnx2trt/yolov3-tiny.cfg'
line811: weights_file_path = '/home/nvidia/yolov3-tiny2onnx2trt/yolov3-tiny.weights'
line826: output_file_path = 'yolov3-tiny.onnx'
onnx_to_tensorrt.py:
line39: input_size = 416
line40: batch_size = 1
line42~line46:
onnx_file_path = 'yolov3-tiny.onnx'
engine_file_path = 'yolov3-tiny.trt'
input_file_list = '/home/nvidia/yolov3-tiny2onnx2trt/imagelist.txt'
IMAGE_PATH = '/home/nvidia/yolov3-tiny2onnx2trt/images/'
save_path = '/home/nvidia/yolov3-tiny2onnx2trt/'
# notes (very important!):
0.The onnx version must be 1.4.1. If it is not, please run the commands:
pip uninstall onnx
pip install onnx==1.4.1
1.The cfg-file's last line must be a blank line. You should press Enter to add a blank line if there is no blank line at the end of the file.
# steps:
0.Put your .weights file in the folder
|-yolov3-tiny2onnx2trt
|-yolov3-tiny.weights
1.Change your settings as "#custom settings"
2.Run commands:
cd yolov3-tiny2onnx2trt
python yolov3_to_onnx.py
you will get a yolov3-tiny.onnx file
3.Run commands:
python onnx_to_tensorrt.py:
you will get a yolov3-tiny.trt file and some inferenced images.

智慧安全方案
- 粉丝: 3927
最新资源
- 大明文化产业园进园路施工设计说明书w.doc
- 使用RGBD图像进行D对象检测_3D-object detection using RGBD images.zip
- 电子商务大学生创业计划书.doc
- 2019年计算机的实习总结范文.doc
- 居住区园林景观设计.ppt
- dvb—s2中bch码编译码器与仿真实现.doc
- 电话营销技巧和方法.doc
- 谷歌最新无人驾驶汽车.ppt
- 2011年9层商业建筑价指标分析.doc
- 某工程测量施工技术交底.doc
- 项目土建工程量清单编制实例.doc
- 国际贸易独家经销协议.doc
- 大厦弱电施工方案.doc
- Qt_C _ Snhnet_Yolov_Qt_C++_Msnhnet_Yolov3.zip
- 地基处理讲稿—教学课件.ppt
- 福建某炼油项目给排水施工方案p.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


