NVlabs / FoundationPose

[CVPR 2024 Highlight] FoundationPose: Unified 6D Pose Estimation and Tracking of Novel Objects
https://nvlabs.github.io/FoundationPose/
Other
955 stars 99 forks source link

Not understanding the docker commands (noob) #57

Closed jkim447 closed 3 weeks ago

jkim447 commented 1 month ago

This is my first time using docker and after some research I'm still struggling to make progress here. Some guidance would be useful.

In your read me you suggested the following:

Screenshot from 2024-04-13 21-43-12

But what is confusing here is that after I run the container using the suggested "bash docker/container.sh", the whole git repo is gone in the new terminal and thus I cannot execute the next command "bash build_all.sh". Clearly I must be missing something obvious here. Any suggestions would be helpful.

jkim447 commented 1 month ago

One way I've gotten around this is by mounting my own local directory by editing the run_container.sh file.

For instance, you can add the line -v /home/your_home_directory:/home/your_home_directory, where "your_home_directory" is probably your user name. I wonder if something like this is standard procedure and so it was not mentioned in the readme.

wenbowen123 commented 1 month ago

yes, this is the right way to do. You can mount your local path to access in docker container. So you can mount the repo's located dir too.