CSICamera didn't work with torchvision

My device is Jetson Nano, I want to run a AI project on it, but I can’t turn on my csi camera after I installed torchvision.
I tried it all the day, and I found that some problems appeared regularly.
When I uninstall the torchvision v0.9.0 by pip3, I can make the camera work. But When I installed it, the Gstreamer show me “Cannot query video position: status=0, value=-1, during=-1”

Part of my enviroment:
torch 1.8.0
torchvision 0.9.0a0+01dfa8e
Pillow 8.1.2

Hmm, I’m not sure what is causing the conflict between the packages - can you try re-installing jetcam library after you install torchvision?

Are you able to see your CSI camera with nvgstcapture-1.0 after installing torchvision?

You could try using the videoSource interface from jetson-inference, as that doesn’t use OpenCV for capture. You could do a quick test by running video-viewer utility from jetson-inference after you install torchvision:

1 Like