Skip to content

Latest commit

 

History

History

lenet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LeNet Network PyTorch=>ONNX=>TensorRT

1.Reference

2.Train PyTorch Network

python3 train.py

3.Export ONNX Model

python3 export_onnx.py

4.Build lenet_trt Project

cd ../  # in project directory
mkdir build && cd build
cmake ..
make -j

5.Run lenet_trt

cd ../../bin/
./tensorrt_inference lenet ../configs/lenet/config.yaml ../samples/mnist

6.Benchmark(2080Ti)

model PyTorch TensorRT
inference time 0.4ms 0.046ms