Spaces:
Runtime error
Runtime error
rockeycoss
commited on
Commit
•
fa4d18a
1
Parent(s):
8e6c8a8
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,13 @@ import os
|
|
3 |
from collections import OrderedDict
|
4 |
|
5 |
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
from mmcv import Config
|
7 |
from mmcv.utils import IS_CUDA_AVAILABLE, IS_MLU_AVAILABLE
|
8 |
|
|
|
3 |
from collections import OrderedDict
|
4 |
|
5 |
import torch
|
6 |
+
|
7 |
+
print(torch.__version__)
|
8 |
+
torch_ver, cuda_ver = torch.__version__.split('+')
|
9 |
+
os.system('pip list')
|
10 |
+
os.system(f'pip install pycocotools==2.0.0 mmdet mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/{cuda_ver}/torch1.10.0/index.html --no-cache-dir')
|
11 |
+
|
12 |
+
|
13 |
from mmcv import Config
|
14 |
from mmcv.utils import IS_CUDA_AVAILABLE, IS_MLU_AVAILABLE
|
15 |
|