Skip to content

Commit f6d4ac3

Browse files
authored
Add files via upload
1 parent 9e89c01 commit f6d4ac3

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

configs/default_test.yaml

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
runner_cfg:
2+
seed: 114514
3+
output_dir: results/norecord/ViTb16-SSR/Morph/
4+
optimizer_and_scheduler_cfg:
5+
param_dict_cfg:
6+
lr_prompt_learner_context: 0.0001
7+
lr_prompt_learner_ranks: 0.0001
8+
lr_image_encoder: 0.0001
9+
lr_image_adapter: 0.00001
10+
lr_regressor: 0.00001
11+
lr_text_encoder: 0.0
12+
lr_logit_scale: 0.0
13+
lr_adapter: 0.0
14+
staged_lr_image_encoder:
15+
new_layers: []
16+
base_lr_mult: 1.0
17+
new_lr_mult: 1.0
18+
optimizer_cfg:
19+
optimizer_name: radam
20+
lr: 0.0001
21+
weight_decay: 0.0
22+
momentum: 0.9
23+
sgd_dampening: 0.0
24+
sgd_nesterov: False
25+
rmsprop_alpha: 0.99
26+
adam_beta1: 0.9
27+
adam_beta2: 0.999
28+
staged_lr: null
29+
lookahead: False
30+
lr_scheduler_cfg:
31+
lr_scheduler_name: multi_step
32+
stepsize:
33+
- 60
34+
gamma: 0.1
35+
max_epochs: &max_epochs 200
36+
warmup_epoch: 0
37+
warmup_cons_lr: 1.0e-05
38+
warmup_min_lr: 1.0e-05
39+
warmup_type: constant
40+
warmup_recount: True
41+
load_weights_cfg:
42+
init_model_weights: null
43+
init_prompt_learner_weights: null
44+
init_image_encoder_weights: null
45+
init_image_adapter_weights: null
46+
init_text_encoder_weights: null
47+
init_adapter_weights: null
48+
init_regressor_weights: null
49+
loss_weights:
50+
ce_loss: 1.0
51+
kl_loss: 1.0
52+
reg_loss: 1.0
53+
model_cfg:
54+
type: OrdinalCLIP
55+
prompt_learner_cfg:
56+
type: PlainPromptLearner
57+
num_ranks: 100
58+
num_base_ranks: 3
59+
num_tokens_per_rank: 1
60+
num_context_tokens: 10
61+
rank_tokens_position: tail
62+
init_rank_path: null
63+
init_context: null
64+
rank_specific_context: false
65+
interpolation_type: linear
66+
text_encoder_name: RN50
67+
image_encoder_name: RN50
68+
data_cfg:
69+
train_images_root: bonjour
70+
val_images_root: bonjour
71+
test_images_root: bonjour
72+
train_data_file: bonjour
73+
val_data_file: bonjour
74+
test_data_file: bonjour
75+
few_shot:
76+
num_shots: 0
77+
label_distributed_shift:
78+
num_topk_scaled_class: 0
79+
scale_factor: 1.0
80+
use_long_tail: false
81+
transforms_cfg:
82+
input_transforms:
83+
- random_resized_crop
84+
- random_hflip
85+
- normalize
86+
input_resize:
87+
- 256
88+
- 256
89+
input_size:
90+
- 224
91+
- 224
92+
pixel_mean:
93+
- 0.485
94+
- 0.456
95+
- 0.406
96+
pixel_std:
97+
- 0.229
98+
- 0.224
99+
- 0.225
100+
train_dataloder_cfg:
101+
num_workers: 8
102+
batch_size: 32
103+
shuffle: true
104+
eval_dataloder_cfg:
105+
num_workers: 8
106+
batch_size: 32
107+
shuffle: false
108+
trainer_cfg:
109+
max_epochs: *max_epochs
110+
precision: 16
111+
accelerator: gpu
112+
devices: 1
113+
check_val_every_n_epoch: 1
114+
num_sanity_val_steps: 1
115+
fast_dev_run: false
116+
test_only: False

0 commit comments

Comments
 (0)