Spaces:
Running
Running
hysts
commited on
Commit
•
37c10df
1
Parent(s):
4707407
Update
Browse files
model.py
CHANGED
@@ -10,9 +10,9 @@ if os.getenv('SYSTEM') == 'spaces':
|
|
10 |
mim.uninstall('mmcv-full', confirm_yes=True)
|
11 |
mim.install('mmcv-full==1.5.0', is_yes=True)
|
12 |
|
13 |
-
subprocess.
|
14 |
-
subprocess.
|
15 |
-
subprocess.
|
16 |
|
17 |
import huggingface_hub
|
18 |
import numpy as np
|
|
|
10 |
mim.uninstall('mmcv-full', confirm_yes=True)
|
11 |
mim.install('mmcv-full==1.5.0', is_yes=True)
|
12 |
|
13 |
+
subprocess.run('pip uninstall -y opencv-python'.split())
|
14 |
+
subprocess.run('pip uninstall -y opencv-python-headless'.split())
|
15 |
+
subprocess.run('pip install opencv-python-headless==4.5.5.64'.split())
|
16 |
|
17 |
import huggingface_hub
|
18 |
import numpy as np
|