Skip to content

Pytorch models built and saved to generate tensorrt weights file. Sibling project to use the generated trt weights file and create tensorrt engine using TensorRT C++ api.

Notifications You must be signed in to change notification settings

makaveli10/torchtrtz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torchtrtz

This project is mainly used t generate tensorrt weights for makaveli10/cpptensorrtz

Getting Started

  1. Tested with python==3.7.9
  2. Install torch, torchvision
 $ pip install torch==1.6.0
 $ pip install torchvision==0.7.0
  1. Install torchsummary
 $ pip install torchsummary

How to Run

All the models are from torchvision. model.py will download and save the torch weights. Then gen_wts.py will write the pytorch model in a "vgg16".wts file as required by TensorRT.

Example VGG:

 $ cd vgg
 $ python models.py
 $ python gen_trtwts.py

About

Pytorch models built and saved to generate tensorrt weights file. Sibling project to use the generated trt weights file and create tensorrt engine using TensorRT C++ api.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages