ZiyuG commited on
Commit
c65d897
1 Parent(s): adf337b

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +4 -2
evaluate.py CHANGED
@@ -273,6 +273,8 @@ def install():
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.system('pip install -v -e .')
277
- os.system('pip install numpy<2.0')
278
  os.chdir('../')
 
 
 
 
 
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
+ import subprocess
278
+ subprocess.run(["pip", "uninstall", "-y", "numpy"], check=True)
279
+ subprocess.run(["pip", "install", "numpy<2"], check=True)
280
+