File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
label_studio_ml/examples/segment_anything_2_image Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1- FROM pytorch/pytorch:2.1.2 -cuda12.1-cudnn8 -runtime
1+ FROM pytorch/pytorch:2.5.1 -cuda12.4-cudnn9 -runtime
22ARG DEBIAN_FRONTEND=noninteractive
33ARG TEST_ENV
44
55WORKDIR /app
66
7- RUN conda update conda -y
7+ RUN mamba update conda -y
88
99RUN --mount=type=cache,target="/var/cache/apt" ,sharing=locked \
1010 --mount=type=cache,target="/var/lib/apt/lists" ,sharing=locked \
@@ -24,9 +24,7 @@ ENV PYTHONUNBUFFERED=1 \
2424 CUDA_HOME=/usr/local/cuda \
2525 SEGMENT_ANYTHING_2_REPO_PATH=/segment-anything-2
2626
27- # this image is already built with cuda 12.1.1, so we don't need to install it again
28- # RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y
29-
27+ RUN mamba install nvidia/label/cuda-12.4.0::cuda -y
3028ENV CUDA_HOME=/opt/conda \
3129 TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"
3230
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ services:
88 context : .
99 args :
1010 TEST_ENV : ${TEST_ENV}
11+ deploy :
12+ resources :
13+ reservations :
14+ devices :
15+ - driver : nvidia
16+ count : 1
17+ capabilities : [gpu]
1118 environment :
1219 # specify these parameters if you want to use basic auth for the model server
1320 - BASIC_AUTH_USER=
@@ -24,9 +31,9 @@ services:
2431 # specify device
2532 - DEVICE=cuda # or 'cpu' (coming soon)
2633 # SAM2 model config
27- - MODEL_CONFIG=sam2_hiera_l .yaml
34+ - MODEL_CONFIG=configs/sam2.1/sam2.1_hiera_l .yaml
2835 # SAM2 checkpoint
29- - MODEL_CHECKPOINT=sam2_hiera_large .pt
36+ - MODEL_CHECKPOINT=sam2.1_hiera_large .pt
3037
3138 # Specify the Label Studio URL and API key to access
3239 # uploaded, local storage and cloud storage files.
You can’t perform that action at this time.
0 commit comments