ZiyuG commited on
Commit
bf45168
1 Parent(s): 542b688

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +8 -4
evaluate.py CHANGED
@@ -3,6 +3,10 @@ import json, os, torch
3
  import numpy as np
4
  from sklearn.preprocessing import Normalizer
5
  from align import align_filter
 
 
 
 
6
 
7
  def merge_intervals_with_breaks(time_intervals, errors, max_break=1.5):
8
  print(f"时间区间: {time_intervals}")
@@ -276,10 +280,10 @@ def install():
276
  # os.system('mim install "mmpose"')
277
  # os.system('pip3 install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.4/index.html"')
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"')
 
3
  import numpy as np
4
  from sklearn.preprocessing import Normalizer
5
  from align import align_filter
6
+ import sys
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}")
 
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')
285
+ # os.system('pip install -r requirements.txt')
286
+ # os.chdir('../')
287
 
288
 
289
  # os.system('mim install "mmpose>=1.1.0"')