fffiloni commited on
Commit
d43f63e
1 Parent(s): 0639262

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -28,7 +28,7 @@ USER user
28
 
29
  ENV HOME=/home/user \
30
  PATH=/home/user/.local/bin:$PATH \
31
- PYTHONPATH=$HOME/app \
32
  PYTHONUNBUFFERED=1 \
33
  GRADIO_ALLOW_FLAGGING=never \
34
  GRADIO_NUM_PORTS=1 \
@@ -46,6 +46,12 @@ ENV CUDA_VISIBLE_DEVICES=0
46
  # Clone the RB-Modulation repository
47
  RUN git clone https://github.com/google/RB-Modulation.git $HOME/app
48
 
 
 
 
 
 
 
49
  # Set the working directory
50
  WORKDIR $HOME/app
51
 
@@ -68,6 +74,8 @@ RUN pip install --no-cache-dir gdown
68
  # Download pre-trained CSD weights
69
  RUN gdown https://drive.google.com/uc?id=1FX0xs8p-C7Ob-h5Y4cUhTeOepHzXv_46 -O third_party/CSD/checkpoint.pth
70
 
 
 
71
  # Install LangSAM and its dependencies
72
  RUN pip install --no-cache-dir git+https://github.com/IDEA-Research/GroundingDINO.git && \
73
  pip install --no-cache-dir segment-anything==1.0 && \
 
28
 
29
  ENV HOME=/home/user \
30
  PATH=/home/user/.local/bin:$PATH \
31
+ ENV PYTHONPATH=$HOME/app:$HOME/app/third_party/StableCascade:$HOME/app/third_party/CSD:$PYTHONPATH
32
  PYTHONUNBUFFERED=1 \
33
  GRADIO_ALLOW_FLAGGING=never \
34
  GRADIO_NUM_PORTS=1 \
 
46
  # Clone the RB-Modulation repository
47
  RUN git clone https://github.com/google/RB-Modulation.git $HOME/app
48
 
49
+ # Ensure CSD directory exists and is in the correct location
50
+ RUN if [ ! -d "$HOME/app/third_party/CSD" ]; then \
51
+ echo "CSD directory not found in the expected location" && \
52
+ exit 1; \
53
+ fi
54
+
55
  # Set the working directory
56
  WORKDIR $HOME/app
57
 
 
74
  # Download pre-trained CSD weights
75
  RUN gdown https://drive.google.com/uc?id=1FX0xs8p-C7Ob-h5Y4cUhTeOepHzXv_46 -O third_party/CSD/checkpoint.pth
76
 
77
+ RUN ls -R $HOME/app/third_party/CSD
78
+
79
  # Install LangSAM and its dependencies
80
  RUN pip install --no-cache-dir git+https://github.com/IDEA-Research/GroundingDINO.git && \
81
  pip install --no-cache-dir segment-anything==1.0 && \