ynhe commited on
Commit
89bab7a
1 Parent(s): 45dcf34

[Update] update detectron2

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import os
 
 
 
2
  import numpy as np
3
  import random
4
  import torch
 
1
  import os
2
+ os.system(
3
+ "python -m pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.6'"
4
+ )
5
  import numpy as np
6
  import random
7
  import torch
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
2
- detectron2 @ git+https://github.com/facebookresearch/detectron2.git
3
  openai
4
  einops
5
  gradio
 
1
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
 
2
  openai
3
  einops
4
  gradio