-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtrain_script.py
More file actions
26 lines (17 loc) · 771 Bytes
/
train_script.py
File metadata and controls
26 lines (17 loc) · 771 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 os
""" parameters """
method = "tsn"
dataset = "myaction"
classes = 7
samplesize = 224
num_frames = 8
model = "STR_Transformer"
result_path = f"result"
eval_path = result_path+"/eval1215"
at_type = "DTM"
n_epochs = 25
################## train ##################
sub_path = f"{model}_{at_type}"
string = f"python main.py --result_path {result_path} --sub_path {sub_path} --model {model} --at_type {at_type} --n_classes {classes} --num_frames {num_frames} --sample_size {samplesize} --learning_rate 1e-5 --multistep_milestones 10 20 --gama 0.2 --n_epochs {n_epochs} --dataset {dataset} --optimizer adam --batch_size 1 --n_threads 4 --checkpoint 10 --no_val --tensorboard --seg_method {method}"
# print(string)
# os.system(string)