-
Notifications
You must be signed in to change notification settings - Fork 1
/
train_video.sh
58 lines (52 loc) · 1.53 KB
/
train_video.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
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env sh
ADAPTER_CHANNEL=$1
GPUS=${GPUS:-8}
PORT=$((12000 + $RANDOM % 20000))
MASTER_ADDR=${MASTER_ADDR:-127.0.0.1}
DATASET=K400
CLUSTER=True \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -m torch.distributed.launch \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
--use_env \
main_video.py \
--batch_size 16 \
--cls_token \
--finetune VIT_BASE_IN21K \
--dist_eval \
--output_dir "./video_output/IN21K/0.5/${DATASET}" \
--drop_path 0.0 \
--blr 1e-3 \
--epochs 12 \
--warmup_epochs 2 \
--weight_decay 0.01 \
--dataset "${DATASET}" \
--ffn_adapt \
--auto_remove \
--token_target_ratio 0.5
DATASET=SSV2
CLUSTER=True \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -m torch.distributed.launch \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
--use_env \
main_video.py \
--batch_size 16 \
--cls_token \
--finetune VIT_BASE_IN21K \
--dist_eval \
--output_dir "./video_output/IN21K/0.5/${DATASET}" \
--drop_path 0.0 \
--blr 1e-3 \
--epochs 50 \
--warmup_epochs 2 \
--eval_freq 5 \
--weight_decay 0.01 \
--dataset "${DATASET}" \
--ffn_adapt \
--auto_remove \
--token_target_ratio 0.5