资源算法YOLOv3-Torch2TRT

YOLOv3-Torch2TRT

2020-03-04 | |  151 |   0 |   0

YOLOv3-Torch2TRT

Introduction

Convert YOLOv3 and YOLOv3-tiny (PyTorch version) into TensorRT models, through the torch2trt Python API.

Installation

Clone the repo

git clone https://github.com/DocF/YOLOv3-Torch2TRT.git

Download pretrained weights

$ cd weights/
$ bash download_weights.sh

Requirements

Two special Python packages are needed:

  • tensorrt

  • torch2trt

Due to the upsampling operation in YOLO, according to torch2trt API introduction, you need to install the version with plugins.

Installation reference: https://github.com/NVIDIA-AI-IOT/torch2trt

Check torch2trt API

python3 check.py

Inference Acceleration

Acceleration Techs:

  • FP16

  • TensorRT

Here are some results on TITAN xp:

Model nameInput SizeFP16Entire Mode*(FPS)Backbone+FeatureNet(FPS)
YOLOv3320×320
87.58 Hz102.95 Hz

320×320✔️83.63 Hz100.36 Hz
YOLOv3-TRT320×320
110.74 Hz121.81 Hz

320×320✔️106.92 Hz124.95 Hz
YOLOv3-tiny320×320
354.10 Hz668.71 Hz

320×320✔️379.11 Hz727.82 Hz
YOLOv3-tiny-TRT320×320
684.75 Hz1035.11 Hz

320×320✔️649.71 Hz1012.66 Hz

Entire Model* = Backbone + Feature Net + YOLO Head

python3 detect.py

Statement

This repo is based on PyTorch-YOLOv3. Thx for the great repo.


上一篇:YOLOv3_tiny_TensorFlow

下一篇: Pytorch-DIOU-YOLOv3

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...