Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
RUN apt-get update && apt-get install -y \
|
@@ -20,7 +19,7 @@ RUN apt-get update && apt-get install -y \
|
|
20 |
&& rm -rf /var/lib/apt/lists/*
|
21 |
|
22 |
# Create a symlink for python
|
23 |
-
RUN ln -s /usr/bin/python3
|
24 |
|
25 |
# Create a non-root user
|
26 |
RUN useradd -m -u 1000 user
|
@@ -42,7 +41,7 @@ ENV HOME=/home/user \
|
|
42 |
SYSTEM=spaces
|
43 |
|
44 |
# Set CUDA_HOME environment variable
|
45 |
-
ENV CUDA_HOME=/usr/local/cuda-
|
46 |
ENV TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"
|
47 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
48 |
|
@@ -107,6 +106,7 @@ RUN pip install --no-cache-dir git+https://github.com/IDEA-Research/GroundingDIN
|
|
107 |
pip install --no-cache-dir segment-anything==1.0 && \
|
108 |
git clone https://github.com/luca-medeiros/lang-segment-anything && \
|
109 |
cd lang-segment-anything && \
|
|
|
110 |
pip install -e . && \
|
111 |
cd ..
|
112 |
|
|
|
1 |
+
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-devel
|
|
|
2 |
ENV DEBIAN_FRONTEND=noninteractive
|
3 |
|
4 |
RUN apt-get update && apt-get install -y \
|
|
|
19 |
&& rm -rf /var/lib/apt/lists/*
|
20 |
|
21 |
# Create a symlink for python
|
22 |
+
RUN ln -s /usr/bin/python3 /usr/bin/python
|
23 |
|
24 |
# Create a non-root user
|
25 |
RUN useradd -m -u 1000 user
|
|
|
41 |
SYSTEM=spaces
|
42 |
|
43 |
# Set CUDA_HOME environment variable
|
44 |
+
ENV CUDA_HOME=/usr/local/cuda-11.8
|
45 |
ENV TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"
|
46 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
47 |
|
|
|
106 |
pip install --no-cache-dir segment-anything==1.0 && \
|
107 |
git clone https://github.com/luca-medeiros/lang-segment-anything && \
|
108 |
cd lang-segment-anything && \
|
109 |
+
git checkout 9bdf77715fa70fca96452184abdc64a6666e0d46 && \ # Replace <commit-hash> with the actual commit hash
|
110 |
pip install -e . && \
|
111 |
cd ..
|
112 |
|