-
Notifications
You must be signed in to change notification settings - Fork 60
/
run_f64x224to384.sh
53 lines (50 loc) · 1.45 KB
/
run_f64x224to384.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
export MASTER_PORT=$((12000 + $RANDOM % 20000))
export OMP_NUM_THREADS=1
JOB_NAME='videomamba_small_f64_res224to384'
OUTPUT_DIR="$(dirname $0)/$JOB_NAME"
LOG_DIR="./logs/${JOB_NAME}"
PREFIX='your_k400_path'
DATA_PATH='your_k400_metadata_path'
PARTITION='video5'
GPUS=32
GPUS_PER_NODE=8
CPUS_PER_TASK=16
srun -p $PARTITION \
--job-name=${JOB_NAME} \
--gres=gpu:${GPUS_PER_NODE} \
--ntasks=${GPUS} \
--ntasks-per-node=${GPUS_PER_NODE} \
--cpus-per-task=${CPUS_PER_TASK} \
--kill-on-bad-exit=1 \
python run_class_finetuning.py \
--model videomamba_small \
--finetune your_model_path/videomamba_s16_k400_f64_res224.pth \
--data_path ${DATA_PATH} \
--prefix ${PREFIX} \
--data_set 'Kinetics_sparse' \
--split ',' \
--nb_classes 400 \
--log_dir ${OUTPUT_DIR} \
--output_dir ${OUTPUT_DIR} \
--batch_size 2 \
--update_freq 2 \
--num_sample 2 \
--input_size 384 \
--short_side_size 384 \
--save_ckpt_freq 100 \
--num_frames 64 \
--orig_t_size 64 \
--num_workers 12 \
--warmup_epochs 1 \
--tubelet_size 1 \
--epochs 6 \
--lr 5e-6 \
--drop_path 0.35 \
--opt adamw \
--opt_betas 0.9 0.999 \
--weight_decay 1e-8 \
--test_num_segment 4 \
--test_num_crop 3 \
--dist_eval \
--test_best \
--bf16