-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @joihn , it depends on your needs here, the C++ interface https://github.com/zhiqwang/yolov5-rt-stack/tree/main/deployment/tensorrt doesn't rely on PyTorch, but we use some functions of PyTorch to implement the pre-processing part of the Python inference interface So you can totally remove the PyTorch dependencies if you use the |
Beta Was this translation helpful? Give feedback.
Hi @joihn , it depends on your needs here, the C++ interface https://github.com/zhiqwang/yolov5-rt-stack/tree/main/deployment/tensorrt doesn't rely on PyTorch, but we use some functions of PyTorch to implement the pre-processing part of the Python inference interface
https://github.com/zhiqwang/yolov5-rt-stack/blob/0c88e4f44646092078d5d55caed575dc2d26823d/yolort/runtime/y_tensorrt.py#L193-L194
So you can totally remove the PyTorch dependencies if you use the
OpenCV
andpycuda
to do the pre-processing. In other words, it actually means that you need to rewrite the pre-processing ofPredictorTRT
with OpenCV and pycuda, which is a relatively minor effort. Check TensorRT samples here https://…