Spaces:
Build error
Build error
Liangyu
commited on
Commit
Β·
2a136c4
1
Parent(s):
f176972
add debug code
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ if os.getenv('SYSTEM') == 'spaces':
|
|
| 12 |
mim.install('mmcv-full==1.5.2', is_yes=True)
|
| 13 |
|
| 14 |
|
|
|
|
| 15 |
subprocess.call('pip uninstall -y opencv-python'.split())
|
| 16 |
subprocess.call('pip uninstall -y opencv-python-headless'.split())
|
| 17 |
subprocess.call('pip install opencv-python-headless==4.5.5.64'.split())
|
|
@@ -22,10 +23,15 @@ import cv2
|
|
| 22 |
import gradio as gr
|
| 23 |
import numpy as np
|
| 24 |
|
|
|
|
|
|
|
| 25 |
from mmdet.apis import init_detector, inference_detector
|
| 26 |
from utils import show_result
|
| 27 |
from mmcv import Config
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 29 |
DESCRIPTION = '''# OpenPSG
|
| 30 |
|
| 31 |
This is an official demo for [OpenPSG](https://github.com/Jingkang50/OpenPSG).
|
|
|
|
| 12 |
mim.install('mmcv-full==1.5.2', is_yes=True)
|
| 13 |
|
| 14 |
|
| 15 |
+
subprocess.call('pip install --upgrade pip'.split())
|
| 16 |
subprocess.call('pip uninstall -y opencv-python'.split())
|
| 17 |
subprocess.call('pip uninstall -y opencv-python-headless'.split())
|
| 18 |
subprocess.call('pip install opencv-python-headless==4.5.5.64'.split())
|
|
|
|
| 23 |
import gradio as gr
|
| 24 |
import numpy as np
|
| 25 |
|
| 26 |
+
print('60\% \imported')
|
| 27 |
+
|
| 28 |
from mmdet.apis import init_detector, inference_detector
|
| 29 |
from utils import show_result
|
| 30 |
from mmcv import Config
|
| 31 |
|
| 32 |
+
print('100\% \imported')
|
| 33 |
+
|
| 34 |
+
|
| 35 |
DESCRIPTION = '''# OpenPSG
|
| 36 |
|
| 37 |
This is an official demo for [OpenPSG](https://github.com/Jingkang50/OpenPSG).
|