Spaces:
Running
on
A10G
Running
on
A10G
Update evaluate.py
Browse files- evaluate.py +2 -4
evaluate.py
CHANGED
@@ -3,10 +3,7 @@ import json, os, torch
|
|
3 |
import numpy as np
|
4 |
from sklearn.preprocessing import Normalizer
|
5 |
from align import align_filter
|
6 |
-
|
7 |
-
sys.path.append("./")
|
8 |
-
sys.path.append("./mmpose")
|
9 |
-
sys.path.append("./mmpose/mmpose")
|
10 |
|
11 |
def merge_intervals_with_breaks(time_intervals, errors, max_break=1.5):
|
12 |
print(f"时间区间: {time_intervals}")
|
@@ -279,6 +276,7 @@ def install():
|
|
279 |
# os.system('mim install "mmdet"')
|
280 |
# os.system('mim install "mmpose"')
|
281 |
# os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
|
|
|
282 |
|
283 |
os.system('git clone https://github.com/open-mmlab/mmpose.git')
|
284 |
os.chdir('mmpose')
|
|
|
3 |
import numpy as np
|
4 |
from sklearn.preprocessing import Normalizer
|
5 |
from align import align_filter
|
6 |
+
|
|
|
|
|
|
|
7 |
|
8 |
def merge_intervals_with_breaks(time_intervals, errors, max_break=1.5):
|
9 |
print(f"时间区间: {time_intervals}")
|
|
|
276 |
# os.system('mim install "mmdet"')
|
277 |
# os.system('mim install "mmpose"')
|
278 |
# os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
|
279 |
+
os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
|
280 |
|
281 |
os.system('git clone https://github.com/open-mmlab/mmpose.git')
|
282 |
os.chdir('mmpose')
|