Spaces:
Running
on
A10G
Running
on
A10G
Update evaluate.py
Browse files- evaluate.py +10 -1
evaluate.py
CHANGED
@@ -251,4 +251,13 @@ def eval(test, standard, tmpdir):
|
|
251 |
# 1. scores 的平均值,作为整体手势相似度的评分
|
252 |
# 2. final_merged_intervals,合并后的误差时间区间及其对应的误差信息
|
253 |
# 3. comments,用于给用户的速度建议(加快或放慢手势)
|
254 |
-
return sum(scores) / len(scores), final_merged_intervals, comments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
# 1. scores 的平均值,作为整体手势相似度的评分
|
252 |
# 2. final_merged_intervals,合并后的误差时间区间及其对应的误差信息
|
253 |
# 3. comments,用于给用户的速度建议(加快或放慢手势)
|
254 |
+
return sum(scores) / len(scores), final_merged_intervals, comments
|
255 |
+
|
256 |
+
def install():
|
257 |
+
os.system('mim install mmengine')
|
258 |
+
os.system('mim install "mmcv>=2.0.1"')
|
259 |
+
os.system('mim install "mmdet>=3.1.0"')
|
260 |
+
os.system('git clone https://github.com/open-mmlab/mmpose.git')
|
261 |
+
os.chdir('mmpose')
|
262 |
+
os.system('pip install -r requirements.txt')
|
263 |
+
os.system('pip install -v -e .')
|