-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtrain.sh
More file actions
31 lines (25 loc) · 952 Bytes
/
train.sh
File metadata and controls
31 lines (25 loc) · 952 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
27
28
29
30
31
work_base='.'
job_name_wo_time='CLIP_subj1'
current_time=$(date "+%m%d%H%M%S")
job_name="${current_time}_${job_name_wo_time}"
scripts_dir="${work_base}/scripts"
results_dir="${work_base}/results/train/${job_name}"
cd "${work_base}"
mkdir -p $results_dir
data_dir="${work_base}/data"
backup_file_dir="${results_dir}/backup_files"
mkdir -p $backup_file_dir
cp -r ${scripts_dir} "${work_base}/1_train.sh" "$backup_file_dir/"
touch "${results_dir}/info.md"
nohup \
python "${backup_file_dir}/scripts/train_pl_mul_subj.py" \
--work_base "${work_base}" --job_name "${job_name}" \
--data_dir "${data_dir}" \
--train_subj 1 --val_subj 1 \
--default_struct CLIP \
--pretrained_model_path "" --resume_ckpt_path "" \
--min_in_context 30 --max_in_context 500 --max_unknown 100 \
--gpu 0 \
--batch_size 64 --lr 1e-4 --weight_decay 1e-1 --loss_type pmse --dropout 0.5 \
--epochs 100 \
>> "${results_dir}/predict.out" 2>&1 &