forked from OpenNLPLab/FAVDBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
47 lines (45 loc) · 1.27 KB
/
run.sh
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
# signle gpu
python \
./src/tasks/train.py \
--config ./src/configs/favd_32frm_default.json \
--per_gpu_train_batch_size 2 \
--per_gpu_eval_batch_size 2 \
--num_train_epochs 150 \
--learning_rate 0.0001 \
--max_num_frames 32 \
--backbone_coef_lr 0.05 \
--learn_mask_enabled \
--loss_sparse_w 0.5 \
--lambda_ 0.1 \
--output_dir ./output/favd_default \
# multiple gpus
torchrun --nproc_per_node=8 \
./src/tasks/train.py \
--config ./src/configs/favd_32frm_default.json \
--per_gpu_train_batch_size 2 \
--per_gpu_eval_batch_size 2 \
--num_train_epochs 150 \
--learning_rate 0.0001\
--max_num_frames 32 \
--backbone_coef_lr 0.05 \
--learn_mask_enabled \
--loss_sparse_w 0.5 \
--lambda_ 0.1 \
--output_dir ./output/favd_default \
# multiple nodes
torchrun --nproc_per_node=8 \
--master_addr= \
--master_port= \
--nnodes= \
--node_rank= \
--config ./src/configs/favd_32frm_default.json \
--per_gpu_train_batch_size 2 \
--per_gpu_eval_batch_size 2 \
--num_train_epochs 150 \
--learning_rate 0.0001 \
--max_num_frames 32 \
--backbone_coef_lr 0.05 \
--learn_mask_enabled \
--loss_sparse_w 0.5 \
--lambda_ 0.1 \
--output_dir ./output/favd_default \