-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile_requirements.py
31 lines (24 loc) · 1022 Bytes
/
file_requirements.py
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
27
28
29
30
31
import gdown
import os
import shutil
try:
# Face - Recogniton
#https://drive.google.com/drive/folders/1jBSMjeC2B0SaYiXQOWng6b5SBItIIp1x?usp=sharing
# Cheating - Recognition
#url2 = "https://drive.google.com/drive/folders/1o1GLOf0QMnhPg4xbcn99_x60N_KuiQnJ?usp=sharing"
url = "https://drive.google.com/drive/folders/1jBSMjeC2B0SaYiXQOWng6b5SBItIIp1x?usp=sharing"
gdown.download_folder(url, quiet=False, use_cookies=False)
# Cheating- Recogintion
url2 = "https://drive.google.com/drive/folders/1o1GLOf0QMnhPg4xbcn99_x60N_KuiQnJ?usp=sharing"
gdown.download_folder(url2, quiet=False, use_cookies=False)
print("Download requirements file successfully")
except Exception as e:
print("Download requirements file failed")
print(e)
try:
source_folder = 'Pose/graph_models'
destination_folder = 'src/Pose/graph_models'
shutil.copytree(source_folder, destination_folder, dirs_exist_ok=True)
print(f"All files requirement setup successfully")
except Exception as e2:
print(e2)