-
Notifications
You must be signed in to change notification settings - Fork 1
/
officehome_tgt_ours_pb_teachaug_directed.yaml
82 lines (64 loc) · 1.63 KB
/
officehome_tgt_ours_pb_teachaug_directed.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# @package _global_
# to execute this experiment run:
# python run.py experiment=example_simple.yaml
defaults:
- override /trainer: default.yaml
- override /model: ours_pbta_directed.yaml
- override /data: tgt_teachaug_train_datamodule.yaml
- override /callbacks: default.yaml
- override /logger: many_loggers.yaml
# all parameters below will be merged with parameters from default configurations set above
# this allows you to overwrite only specified parameters
# name of the run determines folder name in logs
# it's also accessed by loggers
seed: 1
source_task: "Ar"
target_task: "Cl"
data:
dataset:
_target_: src.data.components.officehome.OfficeHome
root: ${paths.data_dir}/officehome
task: ${target_task}
download: True
batch_size: 64
num_workers: 8
pin_memory: True
M: 1
K: 1
model:
net:
num_classes: 65
pretrained_path: ${paths.root_dir}/pretrained_model/officehome/${source_task}_seed${seed}_resnet50.pth
optimizer_args:
lr: 0.003
momentum: 0.9
nesterov: True
weight_decay: 0.0005
scheduler_args:
type: "exponential"
power: 0.0
gamma: 10.0
aug_optimizer_args:
lr: 0.0005
weight_decay: 0.01
lambda_neg: 0.75
lambda_neg_2: 0.75
lambda_aug: 1.0
lambda_strong: 0.5
net_momentum: 0.99
warmup_epoch: 0
interval_epoch: 4
init_aug: "autoaug"
init_aug_prob: 0.99
K: 3
M: 3
MM: 3
optimize_params: "back_bottle"
trainer:
max_epochs: 133 # including data augmentation epoch
task_name: OfficeHome_${source_task}2${target_task}
method_name: ours_pbta_directed
logger:
mlflow:
experiment_name: ${task_name}
run_name: ${method_name}