Skip to content

coco1578/ESRGAN-TensorRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Transform ESRGAN Pytorch to TensorRT and Inference

Transform Process


1. Pytorch 2 ONNX

python torch2onnx.py --input esrgan.pth --output esrgan.onnx --fp16 

ONNX 2 TensorRT

python onnx2trt.py --input esrgan.onnx --output esrgan.trt --fp16

Test inference with TensorRT ESRGAN

python test_trt.py --model esrgan.trt --image input.png --output output.png

Releases

No releases published

Packages

No packages published

Languages