-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo_examples.py
25 lines (20 loc) · 905 Bytes
/
demo_examples.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
import os
print(">> Download pretrained weights")
try:
os.system("python weights/download_model_weights.py --target_path weights")
except Exception as error:
raise f"Error Exception when download the pretrained weights: {error}"
print('Download pretrained weight successfully !!')
print(">> Download example frames")
if not os.path.exists("assets"):
os.makedirs("assets", exist_ok=True)
if not os.path.exists("assets/demo_images"):
try:
os.system("python assets/download_demo_images.py --target_path assets")
if not os.path.exists("assets/demo_images"):
raise "demo_images doesn't exist"
except Exception as error:
raise f"Error Exception when download the example images: {error}"
print('Download demo images successfully !!')
print(">> Start quick demo for test dataset: 0902_130006_131041 camera_0")
os.system("python inference_testset.py")