-
Notifications
You must be signed in to change notification settings - Fork 8
/
run_selfsup.sh
42 lines (38 loc) · 979 Bytes
/
run_selfsup.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
# self-supervised learning with coreset sampling
TAG=""
DATA=""
python train_selfsup.py --tag $TAG \
--merge_dataset \
--model resnet50 \
--batch_size 512 \
--precision \
--dataset1 $DATA \
--dataset2 imagenet \
--data_folder1 /path/to/data \
--data_folder2 /path/to/data/ILSVRC2015/ILSVRC2015/Data/CLS-LOC/ \
--method simclr \
--epochs 5000 \
--cosine \
--optimizer sgd \
--learning_rate 1e-1 \
--weight_decay 1e-4 \
--sampling_method simcore \
--retrieval_ckpt /path/to/retrieval_ckpt/last.pth \
--cluster_num 100 \
--stop \
--stop_thresh 0.95
# vanilla self-supervised learning without sampling
TAG=""
DATA=""
python train_selfsup.py --tag $TAG \
--no_sampling \
--model resnet50 \
--batch_size 512 \
--precision \
--dataset $DATA \
--data_folder /path/to/data \
--method simclr \
--epochs 5000 \
--cosine \
--learning_rate 1e-1 \
--weight_decay 1e-4