Skip to content

Commit

Permalink
fix: SAM2 image and video cuda dependencies in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Jan 8, 2025
1 parent c2a57d5 commit 08f8c4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion label_studio_ml/examples/segment_anything_2_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ ENV PYTHONUNBUFFERED=1 \
CUDA_HOME=/usr/local/cuda \
SEGMENT_ANYTHING_2_REPO_PATH=/segment-anything-2

RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y
# this image is already built with cuda 12.1.1, so we don't need to install it again
# RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y

ENV CUDA_HOME=/opt/conda \
TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"

Expand Down
4 changes: 3 additions & 1 deletion label_studio_ml/examples/segment_anything_2_video/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ ENV PYTHONUNBUFFERED=1 \
CUDA_HOME=/usr/local/cuda \
SEGMENT_ANYTHING_2_REPO_PATH=/segment-anything-2

RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y
# this image is already built with cuda 12.1.1, so we don't need to install it again
# RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y

ENV CUDA_HOME=/opt/conda \
TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"

Expand Down

0 comments on commit 08f8c4a

Please sign in to comment.