Hi,
On Nano, it’s recommended to use TensorRT for inference.
Please convert your pth model into the ONNX format first.
After that, you can check the below sample to read images (using OpenCV) and print the model output.
https://elinux.org/Jetson/L4T/TRT_Customized_Example#OpenCV_with_ONNX_model
Thanks.