Noursine commited on
Commit
668461c
·
verified ·
1 Parent(s): cf35d80

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -23,16 +23,11 @@ RUN pip install --upgrade pip
23
  # Install PyTorch CPU version
24
  RUN pip install torch==2.0.1+cpu torchvision==0.15.2+cpu --index-url https://download.pytorch.org/whl/cpu
25
 
26
- # Install other Python dependencies
27
  RUN pip install -r requirements.txt
28
 
29
- # Clone Detectron2 repo
30
- RUN git clone https://github.com/facebookresearch/detectron2.git /detectron2
31
-
32
- # Checkout a commit known to work with PointRend
33
- RUN cd /detectron2 && git checkout 6d9d66b
34
-
35
- # Install Detectron2 in editable mode
36
  RUN pip install -e /detectron2
37
 
38
  # Add Detectron2 to PYTHONPATH
 
23
  # Install PyTorch CPU version
24
  RUN pip install torch==2.0.1+cpu torchvision==0.15.2+cpu --index-url https://download.pytorch.org/whl/cpu
25
 
26
+ # Install Python dependencies
27
  RUN pip install -r requirements.txt
28
 
29
+ # Clone Detectron2 using the v0.6 tag (compatible with PointRend)
30
+ RUN git clone --branch v0.6 https://github.com/facebookresearch/detectron2.git /detectron2
 
 
 
 
 
31
  RUN pip install -e /detectron2
32
 
33
  # Add Detectron2 to PYTHONPATH