Skip to content

Commit

Permalink
Fix grounding sam
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Dec 28, 2024
1 parent 5f44ee5 commit 3fc0c51
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions label_studio_ml/examples/grounding_sam/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN --mount=type=cache,target="/var/cache/apt",sharing=locked \
&& apt-get install -y git \
&& apt-get install -y wget \
&& apt-get install -y g++ freeglut3-dev build-essential libx11-dev \
libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev libfreeimage-dev \
libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev libfreeimage-dev ninja-build \
&& apt-get -y install ffmpeg libsm6 libxext6 libffi-dev python3-dev python3-pip gcc

ENV PYTHONUNBUFFERED=1 \
Expand All @@ -23,10 +23,8 @@ ENV PYTHONUNBUFFERED=1 \
THREADS=4 \
CUDA_HOME=/usr/local/cuda \
GROUNDINGDINO_REPO_PATH=/GroundingDINO

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"
ENV PATH="${CUDA_HOME}/bin:${PATH}"
ENV TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"

COPY requirements.txt .
RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
Expand Down

0 comments on commit 3fc0c51

Please sign in to comment.