-
Notifications
You must be signed in to change notification settings - Fork 6
/
batch_train_COCO.py
51 lines (47 loc) · 1.44 KB
/
batch_train_COCO.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import subprocess
from itertools import product
# v_list = ['dashcam_%d_test' % (i+1) for i in range(4)] + ['trafficcam_%d_test' % (i+1) for i in range(4)]
# v_list = [v_list[0]]
# v_list = ['train_first/trafficcam_%d_train' % (i+1) for i in range(4)] + ['train_first/dashcam_%d_train' % (i+1) for i in range(4)]
# v_list = [v_list[4]]
app = "COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml"
# model_name = f"COCO_full_normalizedsaliency_R_101_FPN_crossthresh_5xdownsample"
architecture = "vgg11"
model_name = f"COCO_Detection_FPN_{architecture}_small"
# model_name = "visdrone_R_101_FPN_crossthresh"
filename = "generalvgg"
subprocess.run(
[
"python",
"train_COCO.py",
"-g",
# f"visdrone_normalizedsaliency_R_101_FPN.pickle",
"COCO_full_normalizedsaliency_R_101_FPN.pickle",
"-p",
f"maskgen_pths/{model_name}.pth",
"--init",
f"maskgen_pths/{model_name}.pth.best",
"--tile_size",
"16",
"--batch_size",
"4",
"--log",
f"train_{model_name}_small.log",
"--maskgen_file",
f"/tank/kuntai/code/video-compression/maskgen/{filename}.py",
"--visualize",
"True",
"--app",
# f"Segmentation/fcn_resnet50",
f"{app}",
# "--local_rank",
# "1",
"--num_workers",
"10",
"--learning_rate",
"1e-3",
"--architecture",
architecture,
]
)