Docker jetson inference

Hi, I completed a training session and made visual modifications using OpenCV.
But I want to know if there’s any way to run Docker and my .py with another .sh file, or should I modify docker/run.sh?

The commands I use are:
$ docker/run.sh --volume /home/desarrollo/Desktop/test/HDTM_mill:/HDTM_mill/
Once inside docker I run:
$ python3 /HDTM_mill/Opencv_HDTM.py

If you could provide me with information or a guide on how to do this, I’d like to implement it.
Is there any way to run my .py outside of docker jetson-inference?
These are my files:


do i need to add something to my .py?

because when I run it outside of docker I get the error and I had torch

and I need to run this detection as an application for a user, any suggestions on what I can do?

It’s in my Jetson information:

I would appreciate any information

I have jetson dist-packages in docker but not my virtual environment, how do I fix this?

I did these steps in my virtual environment:

and jetson appears in dist-packages

but when running the .py it still shows me this error:

Any suggestions on how I should proceed with this?