dnth commited on
Commit
3a63352
1 Parent(s): e1ccf20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,8 +1,7 @@
1
  print("Reinstalling mmcv")
2
- import pip
3
- pip.main(['uninstall', '-y', 'mmcv-full'])
4
- pip.main(['install', 'mmcv-full==1.3.17', '--find-links', 'https://download.openmmlab.com/mmcv/dist/cpu/torch1.10.0/index.html'])
5
- print("mmcv install complete")
6
 
7
  from icevision.all import *
8
  from icevision.models.checkpoint import *
 
1
  print("Reinstalling mmcv")
2
+ subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "-y", "mmcv-full==1.3.17"])
3
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "mmcv-full==1.3.17", "-f", "https://download.openmmlab.com/mmcv/dist/cpu/torch1.10.0/index.html"])
4
+ print("mmcv install complete")
 
5
 
6
  from icevision.all import *
7
  from icevision.models.checkpoint import *