Skip to content

peasant98/SAM2-Docker

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘€ Segment Anything 2 + ROS Noetic + Docker 🐳

Quickstart

Read instructions on the main branch first. To use with ROS, run:

docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --gpus all sam2-ros-docker bash

Inside the container, run

source ~/.bashrc
gnome-terminal

Connecting to ROS running on the local host

Run roscore in both machines to find the port being used. Then close the container and rerun with the -p flag:

docker run -it -p [HOST_PORT]:[CONTAINER_PORT] -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --gpus all sam2-ros-docker bash

To test, run roscore in the docker container and rostopic list on the local host. The local host should show

/rosout
/rosout_agg

About

πŸ‘€ Segment Anything 2 + Docker 🐳

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published