Spaces:
Runtime error
Runtime error
add
Browse files- App_main.py +4 -4
App_main.py
CHANGED
@@ -1,8 +1,11 @@
|
|
|
|
|
|
|
|
|
|
1 |
import glob
|
2 |
import mmcv
|
3 |
import mmengine
|
4 |
import numpy as np
|
5 |
-
import os
|
6 |
from mmengine import Config, get
|
7 |
from mmengine.dataset import Compose
|
8 |
from mmpl.registry import MODELS, VISUALIZERS
|
@@ -11,9 +14,6 @@ register_all_modules()
|
|
11 |
# os.system('nvidia-smi')
|
12 |
# os.system('ls /usr/local')
|
13 |
# os.system('pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu117')
|
14 |
-
os.system('pip install -U openmim')
|
15 |
-
os.system('mim install mmcv==2.0.0')
|
16 |
-
os.system('mim install mmengine')
|
17 |
|
18 |
import gradio as gr
|
19 |
import torch
|
|
|
1 |
+
import os
|
2 |
+
os.system('pip install -U openmim')
|
3 |
+
os.system('mim install mmcv==2.0.0')
|
4 |
+
os.system('mim install mmengine')
|
5 |
import glob
|
6 |
import mmcv
|
7 |
import mmengine
|
8 |
import numpy as np
|
|
|
9 |
from mmengine import Config, get
|
10 |
from mmengine.dataset import Compose
|
11 |
from mmpl.registry import MODELS, VISUALIZERS
|
|
|
14 |
# os.system('nvidia-smi')
|
15 |
# os.system('ls /usr/local')
|
16 |
# os.system('pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu117')
|
|
|
|
|
|
|
17 |
|
18 |
import gradio as gr
|
19 |
import torch
|