forked from JonathanCrabbe/Label-Free-XAI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsimclr_config.yaml
34 lines (28 loc) · 936 Bytes
/
simclr_config.yaml
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
hydra:
job_logging:
# formatters:
# simple:
# format: '[]'
root:
handlers: [console, file] # logging to file only.
run:
#dir: logs/${dataset}
dir: results/${dataset}
dataset: cifar10
data_dir: data/cifar10
experiment_name: consistency_features # consistency_features or consistency_examples
# model
backbone: resnet18 #or densenet121, resnet18, resnet34, resnet50
projection_dim: 128 # "[...] to project the representation to a 128-dimensional latent space"
# train options
seed: 42 # sacred handles automatic seeding when passed in the config
batch_size: 512
workers: 1
epochs: 100
log_interval: 5
# loss options
optimizer: 'sgd' # or LARS (experimental)
learning_rate: 0.6 # initial lr = 0.3 * batch_size / 256
momentum: 0.9
weight_decay: 1.0e-6 # "optimized using LARS [...] and weight decay of 10−6"
temperature: 0.5 # see appendix B.7.: Optimal temperature under different batch sizes