Skip to content

tachillon/Segment-anything-Facebook-Dockerised

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerised version of Segment Anything From Facebook

Installation

prerequisites: Docker (https://docs.docker.com/engine/install/) and CUDA drivers (https://docs.nvidia.com/cuda/cuda-installation-guide-linux).

Run Locally

Clone the project

  git clone https://github.com/tachillon/Segment-anything-Facebook-Dockerised.git

Go to the project directory

  cd Segment-anything-Facebook-Dockerised

Build the docker image

  docker build --no-cache -t sam:latest .

Retrieve the model checkpoint from the official Facebook repo (https://github.com/facebookresearch/segment-anything.git)

Run the code through the docker

  docker run --rm -it --gpus all --ipc=host -w /tmp -v ${PWD}:/tmp sam:latest python3 main.py --image_path <path_to_image> --checkpoint <path_to_checkpoin>

About

A dockerised version of the famous Segment Anything from Meta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages