Open JsSusenka opened 1 year ago
@JsSusenka can you try mounting your jetson-inference/data directory into the container at /jetson-inference/data
?
When you start the container, add this flag to your docker run
command:
-v /path/to/your/jetson-inference/data:/jetson-inference/data
Where /path/to/your/jetson-inference
is the location to where you cloned jetson-inference repo on your device outside of the container. This will not only get your the models.json file, but the models will be downloaded and stored to there, and the TensorRT engines will be built to there. Then when you exit/restart the container, those models will persist and won't have to be redownloaded/rebuilt each time.
Hi @dusty-nv - this is an issue with the containers and I had highlighted this here: https://github.com/dusty-nv/ros_deep_learning/issues/123 The same issue persists when we download the latest containers as well. In addition, this issue: https://github.com/dusty-nv/ros_deep_learning/issues/120, has been carried over to your latest versions. BTW, you are doing fantastic work and I just wanted to highlighted some of these items which probably get carried over during various versions. Thanks
@Fibo27 to address this issue, I've re-organized how the containers are started. Please see the updated documentation here:
https://github.com/dusty-nv/ros_deep_learning#installation https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-docker.md#ros-support
Since the ros_deep_learning nodes depend on the model directory from jetson-inference/data
, you should now run jetson-inference's docker/run.sh --ros=foxy
command. This will automatically mount the needed directories/files into the container.
The copy of the docker scripts in ros_deep_learning has been removed.
In https://github.com/dusty-nv/jetson-inference/commit/c6602dd46fd9a5fd46934db8933cb54b18665bae I've also made it so that /jetson-inference/data/networks/models.json
is built-into the container. So even if these mounts are not setup, it will still be able to download the models. Without the data directory mounted, those models will need to be re-downloaded/re-built after the container exits, but at least it will run even with no mounts.
Greetings. I have a slight problem when trying to use detectnet / imagenet in ros2 foxy container. Video viewer node works just fine, but any other will not work. I am sending log output and l4t version below. Thanks for help in advance!