fffiloni commited on
Commit
5a26b7e
·
verified ·
1 Parent(s): cce8b71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -96,17 +96,17 @@ RUN python -c "from third_party.CSD import model; print('CSD model successfully
96
 
97
 
98
  # Install LangSAM and its dependencies
99
- RUN pip install --no-cache-dir git+https://github.com/IDEA-Research/GroundingDINO.git && \
100
- pip install --no-cache-dir segment-anything==1.0 && \
101
  git clone https://github.com/luca-medeiros/lang-segment-anything && \
102
  cd lang-segment-anything && \
103
  pip install -e . && \
104
  cd ..
105
 
106
- # Compile the GroundingDINO extension
107
- RUN cd /home/user/.local/lib/python3.10/site-packages/groundingdino/models/GroundingDINO && \
108
- python setup.py build_ext --inplace && \
109
- cd /home/user/app
 
110
 
111
  # Upgrade pip and install Gradio
112
  RUN python3 -m pip install --no-cache-dir gradio
 
96
 
97
 
98
  # Install LangSAM and its dependencies
99
+ RUN pip install --no-cache-dir segment-anything==1.0 && \
 
100
  git clone https://github.com/luca-medeiros/lang-segment-anything && \
101
  cd lang-segment-anything && \
102
  pip install -e . && \
103
  cd ..
104
 
105
+ # Clone the GroundingDINO repository and install it
106
+ RUN git clone https://github.com/IDEA-Research/GroundingDINO.git && \
107
+ cd GroundingDINO && \
108
+ pip install -e . && \
109
+ cd ..
110
 
111
  # Upgrade pip and install Gradio
112
  RUN python3 -m pip install --no-cache-dir gradio