Opencv and Pytorch issues on Tx2 Docker Build

Hello Everyone,

I am trying to build a docker image that has dependencies on OpenCV and Pytorch. I tried building the image using several methods available on the forum : trying to use the build, using multistage build using l4t images for pytorch, opencv, installing from Pip…nothing seems to be working.

How do I use the Opencv on the jetpack during runtime ? Also I encounter ImportError: cannot open shared object file: No such file or directory error for torchvision installation, even after I have set the ENV paths. I see for many files /usr/lib/aarch64-linux-gnu/tegra/ is empty, not checked. being popped up during the image build.

Please let me know how to proceed with the installation of pytorch and opencv.

Thank you.