Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/torchvision/io/image.py", line 168, in decode_jpeg
output = torch.ops.image.decode_jpeg_cuda(input, mode.value, device)
File "/usr/local/lib/python3.8/dist-packages/torch/_ops.py", line 502, in __call__
return self._op(*args, **kwargs or {})
RuntimeError: decode_jpeg_cuda: torchvision not compiled with nvJPEG support
Container Used: dustynv/l4t-pytorch:r35.4.1
I suspect while building torchvision, it was unable to find nvjpeg. This might be because it is trying to look for nvjpeg in CUDA_HOME (/usr/local/cuda) which is true of x86 based systems but not for Jetson’s I guess. I ran the find command to find “nvjpeg.h” but was unable to find its location on the Orin. Could you help with this issue? I would like build torchvision with nvJPEG as it helps loads image faster instead of loading image via CPU using opencv and then moving to GPU
Hi,
We don’t observe the issue. Do you install the reference samples through SDKManager or sudo apt-get install command? The dependency should be handled in both methods.
Would suggest check why you don’t have the files. But you can modify Makefile to remove building NvVulkanRenderer. It is not used in 06_jpeg_decode sample.
I am sharing the makefile below, I do not see any NvVulkanRenderer mentioned. I tried removing $(wildcard $(CLASS_DIR)/*.cpp) but it failed during linking.
How do you suggest I check why I don’t have that file? Could you also suggest a way to install just vulkan? I would prefer not to flash my jetson again, takes too much setup time
Hi,
We would suggest re-flash AGX Orin developer kit to Jetpack 5.1.3 and re-install the samples through SDKManager. It is supported to be working fine on a clean system.