-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlauncher_testing.py
More file actions
80 lines (62 loc) · 3.5 KB
/
Copy pathlauncher_testing.py
File metadata and controls
80 lines (62 loc) · 3.5 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
import time
seconds_per_hour = 60 * 60
hours_to_wait = 0#6
seconds_to_wait = hours_to_wait * seconds_per_hour
t1 = time.time()
print("waiting for {} seconds".format(seconds_to_wait))
time.sleep(seconds_to_wait)
print(time.time()-t1)
configs = [
#IMAGE REID --- NUSCENES
# ('testing_rgb_deit-base_pt_nus_det_200e.py','rgb_deit-base_pt_nus_det_200e.pth','nuscenes',),
# ('testing_rgb_deit-tiny_pt_nus_det_200e.py','rgb_deit-tiny_pt_nus_det_200e.pth','nuscenes',),
# ('testing_rgb_deit-tiny_r_nus_det_500e.py','rgb_deit-tiny_r_nus_det_500e.pth','nuscenes',),
# Point REID --- NUSCENES
# ('testing_pts_pointnet_r_nus_det_500e.py','pts_pointnet_r_nus_det_500e.pth','nuscenes',),
# ('testing_pts_point-transformer_r_nus_det_500e.py','pts_point-transformer_r_nus_det_500e.pth','nuscenes',),
# ('testing_pts_dgcnn_r_nus_det_500e.py','pts_dgcnn_r_nus_det_500e.pth','nuscenes',),
# Point BASELINE --- NUSCENES
# ('testing_pts_point-transformer_baseline-stnet_r_nus_det_500e.py','pts_point-transformer-baseline-stnet_r_nus_det_500e.pth','nuscenes',),
#Scaling --- NUSCENES
# ('testing_pts_point-transformer_r_nus_det_500e.py','pts_point-transformer_r_nus_det_1000e.pth','scaling-nuscenes',),
# ('testing_pts_point-transformer_r_nus_det_500e.py','pts_point-transformer_r_nus_det_2000e.pth','scaling-nuscenes',),
# ('testing_pts_point-transformer_r_nus_det_500e.py','pts_point-transformer_r_nus_det_4000e.pth','scaling-nuscenes',),
#IMAGE REID --- WAYMO
# ('testing_rgb_deit-base_pt_waymo_det_200e.py','rgb_deit-base_pt_waymo_det_200e.pth','waymo',),
# ('testing_rgb_deit-tiny_pt_waymo_det_200e.py','rgb_deit-tiny_pt_waymo_det_200e.pth','waymo',),
# ('testing_rgb_deit-tiny_r_waymo_det_400e.py','rgb_deit-tiny_r_waymo_det_400e.pth','waymo',),
#POINT REID --- WAYMO
('testing_pts_point-transformer_r_waymo_det_400e.py','pts_point-transformer_r_waymo_det_400e.pth','waymo',),
# ('testing_pts_pointnet_r_waymo_det_400e.py','pts_pointnet_r_waymo_det_400e.pth','waymo',),
# ('testing_pts_dgcnn_r_waymo_det_400e.py','pts_dgcnn_r_waymo_det_400e.pth','waymo',),
# Point BASELINE --- WAYMO
# ('testing_pts_point-transformer_baseline-stnet_r_waymo_det_400e.py','pts_point-transformer-baseline-stnet_r_waymo_det_400e.pth','even/waymo',),
# Scaling --- WAYMO
# ('testing_pts_point-transformer_r_waymo_det_400e.py','pts_point-transformer_r_waymo_det_3200e.pth','scaling-waymo',),
# ('testing_pts_point-transformer_r_waymo_det_400e.py','pts_point-transformer_r_waymo_det_1600e.pth','scaling-waymo',),
# ('testing_pts_point-transformer_r_waymo_det_400e.py','pts_point-transformer_r_waymo_det_800e.pth','scaling-waymo',),
]
neptune_prefix = "no_point_filter_"
GPUS = [0,1,2,3]
neptune_prefix = None
prefix = "CUDA_VISIBLE_DEVICES={} CUDA_LAUNCH_BLOCKING=1 ".format(
','.join([str(x) for x in GPUS])
)
for c,ckpt,folder in configs:
if 'rgb_' in c:
if 'waymo' in c:
dir_ = 'reid_waymo_image'
elif 'nus' in c:
dir_ = 'reid_nuscenes_image'
else:
if 'waymo' in c:
dir_ = 'reid_waymo_pts'
elif 'nus' in c:
dir_ = 'reid_nuscenes_pts'
command = prefix + "MASTER_ADDR=localhost torchpack dist-run -v -np {} python tools/train.py configs_reid/{}/{} --checkpoint pretrained/{}/{}".format(
len(GPUS),dir_,c,folder,ckpt)
if neptune_prefix is not None:
command += " --neptune-prefix {}".format(neptune_prefix)
print(command)
os.system(command)