-
Notifications
You must be signed in to change notification settings - Fork 21
/
SoCo_C4_100ep.sh
executable file
·46 lines (40 loc) · 1.07 KB
/
SoCo_C4_100ep.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
#!/bin/bash
set -e
set -x
warmup=${1:-10}
epochs=${2:-100}
data_dir="./data/ImageNet-Zip"
output_dir="./SoCo_output/SoCo_C4_100ep"
master_addr=${MASTER_IP}
master_port=28652
python -m torch.distributed.launch --nproc_per_node=8 \
--nnodes ${OMPI_COMM_WORLD_SIZE} --node_rank ${OMPI_COMM_WORLD_RANK} --master_addr ${master_addr} --master_port ${master_port} \
SoCo/main_pretrain.py \
--data_dir ${data_dir} \
--crop 0.6 \
--base_lr 1.0 \
--optimizer lars \
--weight_decay 1e-5 \
--amp_opt_level O1 \
--ss_props \
--auto_resume \
--aug ImageAsymBboxCutout \
--zip --cache_mode no \
--arch resnet50 \
--model SoCo_C4 \
--warmup_epoch ${warmup} \
--epochs ${epochs} \
--output_dir ${output_dir} \
--save_freq 10 \
--batch_size 128 \
--contrast_momentum 0.99 \
--filter_strategy ratio3size0308post \
--select_strategy random \
--select_k 4 \
--output_size 7 \
--aligned \
--jitter_ratio 0.1 \
--padding_k 4 \
--cutout_prob 0.5 \
--cutout_ratio_min 0.1 \
--cutout_ratio_max 0.3