Spaces:
Running
on
A10G
Running
on
A10G
Update evaluate.py
Browse files- evaluate.py +11 -7
evaluate.py
CHANGED
@@ -266,18 +266,22 @@ def install():
|
|
266 |
|
267 |
|
268 |
# os.system(pip_command)
|
269 |
-
|
|
|
|
|
|
|
270 |
os.system('mim install mmengine')
|
271 |
-
os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
|
|
|
272 |
os.system('mim install "mmdet"')
|
|
|
|
|
273 |
# os.system('git clone https://github.com/open-mmlab/mmpose.git')
|
274 |
# os.chdir('mmpose')
|
275 |
# os.system('pip install -r requirements.txt')
|
276 |
# os.chdir('../')
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
# os.system('mim install "mmpose"')
|
281 |
-
os.system('mim install "mmpose>=1.1.0"')
|
282 |
|
283 |
|
|
|
266 |
|
267 |
|
268 |
# os.system(pip_command)
|
269 |
+
import subprocess
|
270 |
+
subprocess.run(["pip", "uninstall", "-y", "numpy"], check=True)
|
271 |
+
subprocess.run(["pip", "install", "numpy<2"], check=True)
|
272 |
+
|
273 |
os.system('mim install mmengine')
|
274 |
+
# os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
|
275 |
+
os.system('mim install "mmcv"')
|
276 |
os.system('mim install "mmdet"')
|
277 |
+
os.system('mim install "mmpose"')
|
278 |
+
|
279 |
# os.system('git clone https://github.com/open-mmlab/mmpose.git')
|
280 |
# os.chdir('mmpose')
|
281 |
# os.system('pip install -r requirements.txt')
|
282 |
# os.chdir('../')
|
283 |
+
|
284 |
+
|
285 |
+
# os.system('mim install "mmpose>=1.1.0"')
|
|
|
|
|
286 |
|
287 |
|