-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransformer_image_fewshot.yaml
62 lines (62 loc) · 1.22 KB
/
transformer_image_fewshot.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
project: HINT_image_fewshot
program: train.py
method: grid
metric:
name: test/result_acc/avg
goal: maximize
parameters:
save_model:
value: True
fewshot:
# value: 'a'
values: ['x', 'y', 'a', 'b', 'c', 'd']
# max_op_train:
# values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
main_dataset_ratio:
value: 0.5
input:
value: image
resume:
value: models/image.TRAN.relative_universal/model_100000.p
perception_pretrain:
value: ""
# values: ["", "imagenet"]
model:
value: TRAN.relative_universal
# values: [TRAN.relative, TRAN.opennmt]
# values: [TRAN.relative_universal, TRAN.relative, TRAN.opennmt]
result_encoding:
value: decimal
# values: [decimal, sin, binary]
batch_size:
value: 128
lr:
value: 0.00001
# values: [0.001, 0.0001, 0.00001]
iterations:
value: 1000
iterations_eval:
value: 100
early_stop:
value: 50
dropout:
value: 0.1
nhead:
value: 8
# values: [4, 8]
# layers:
# value: 6
# values: [3, 6, 9]
enc_layers:
value: 6
# values: [3, 6, 9, 12]
dec_layers:
value: 1
# values: [1, 3, 6]
hid_dim:
value: 512
# values: [128, 256, 512]
max_rel_pos:
value: 15
seed:
values: [1,2]