pierreguillou commited on
Commit
b60a57d
1 Parent(s): cdae7a0

Update files/functions.py

Browse files
Files changed (1) hide show
  1. files/functions.py +4 -2
files/functions.py CHANGED
@@ -1,11 +1,13 @@
1
  import os
2
 
3
  # workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
4
- os.system('pip install torch==1.8.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
 
5
 
6
  # install detectron2 that matches pytorch 1.8
7
  # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
8
- os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
 
9
 
10
  import gradio as gr
11
  import re
 
1
  import os
2
 
3
  # workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
4
+ # os.system('pip install torch==1.8.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
5
+ os.system('pip install -q torch==1.10.0+cu111 torchvision==0.11+cu111 -f https://download.pytorch.org/whl/torch_stable.html')
6
 
7
  # install detectron2 that matches pytorch 1.8
8
  # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
9
+ #os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
10
+ os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
11
 
12
  import gradio as gr
13
  import re