-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_additional.py
More file actions
26 lines (21 loc) · 879 Bytes
/
install_additional.py
File metadata and controls
26 lines (21 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import subprocess
import os
subprocess.run(['pip', 'install', 'hydra-core', '--upgrade'])
if not os.path.exists('./auto_vsr/fairseq'):
os.chdir('auto_vsr')
subprocess.run(['git', 'clone', 'https://github.com/pytorch/fairseq'])
os.chdir('fairseq')
subprocess.run(['pip', 'install', '--editable', './'])
os.chdir('..')
if not os.path.exists('./auto_vsr/face_alignment'):
subprocess.run(['git', 'clone', 'https://github.com/hhj1897/face_alignment.git'])
os.chdir('face_alignment')
subprocess.run(['pip', 'install', '-e', '.'])
os.chdir('..')
if not os.path.exists('./auto_vsr/face_detection'):
subprocess.run(['git', 'clone', 'https://github.com/hhj1897/face_detection.git'])
os.chdir('face_detection')
subprocess.run(['git', 'lfs', 'pull'])
subprocess.run(['pip', 'install', '-e', '.'])
os.chdir('..')
os.chdir('..')