GregaSustar commited on
Commit
cc1aa73
·
verified ·
1 Parent(s): 4878f08

Push checkpoint + config

Browse files
Files changed (1) hide show
  1. config.yaml +174 -0
config.yaml ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ################################################### Variables ##################################################
2
+ define: &learn_sigma True
3
+
4
+ ################################################### Config ##################################################
5
+ name: mcac4
6
+
7
+ vae:
8
+ enabled: True
9
+ path: "stabilityai/sdxl-vae"
10
+ single_ch: False
11
+
12
+ diffusion:
13
+ type: "Denoise"
14
+ params:
15
+ diffusion_steps: 1000
16
+ noise_schedule: scaled_linear
17
+ learn_sigma: *learn_sigma
18
+ sigma_small: False
19
+ use_kl: False
20
+ parametrization: "v"
21
+ rescale_timesteps: False
22
+ rescale_learned_sigmas: False
23
+ timestep_respacing: ""
24
+ lmbd_vlb: 0.001
25
+ lmbd_cb_count: 0.0
26
+ t_mse_weighting_scheme: "uniform"
27
+ t_cb_count_weighting_scheme: "uniform"
28
+ enforce_zero_terminal_snr: True
29
+
30
+ model:
31
+ type: "UNet"
32
+ params:
33
+ # input_size: 64
34
+ in_channels: 164
35
+ model_channels: 192
36
+ out_channels: 4
37
+ num_res_blocks: 2
38
+ attention_resolutions: [1]
39
+ dropout: 0.0
40
+ channel_mult: [1, 2, 4]
41
+ conv_resample: True
42
+ dims: 2
43
+ y_dim: null
44
+ context_dim: 768
45
+ use_checkpoint: True
46
+ num_heads: -1
47
+ num_head_channels: 64
48
+ num_heads_upsample: -1
49
+ use_scale_shift_norm: True
50
+ resblock_updown: True
51
+ learn_count: False
52
+ learn_sigma: *learn_sigma
53
+ transformer_depth: 1
54
+ initial_ds: 0.125
55
+ st_roi_encode_size: False
56
+ st_roi_output_size: 1
57
+ st_unfold_roi: False
58
+ disable_middle_transformer: True
59
+ enhanced_spatial_transformer: True
60
+ nx_enhanced: 1
61
+ disable_self_attentions: null
62
+ deformable_self_attn: False
63
+ topk: -1
64
+
65
+ conditioner:
66
+ embedders:
67
+ # - type: "ImageConcatEmbedder"
68
+ # input_keys: ["img"]
69
+ # is_trainable: False
70
+ # reference_key: "z_img"
71
+
72
+ # - type: "DINOv2ImageEmbedder"
73
+ # input_keys: ["img"]
74
+ # is_trainable: True
75
+ # reference_key: "z_img"
76
+ # # custom_outkey: discard
77
+ # params:
78
+ # checkpoint: "facebook/dinov2-large"
79
+ # out_channels: 160
80
+
81
+ - type: "RADIOImageEmbedder"
82
+ input_keys: ["img"]
83
+ is_trainable: True
84
+ reference_key: "z_img"
85
+ params:
86
+ model_version: "radio_v2.5-l"
87
+ out_channels: 160
88
+ resize: True
89
+ # out_indices: null
90
+
91
+ # - type: "ProjectEmbedder"
92
+ # input_keys: ["z_img"]
93
+ # is_trainable: True
94
+ # params:
95
+ # in_channels: 256
96
+ # out_channels: 16
97
+
98
+ - type: "BBoxAppendEmbedder"
99
+ input_keys: ["bboxes"]
100
+ is_trainable: False
101
+ custom_outkey: "bboxes"
102
+ custom_catdim: 1
103
+ ucg_rate: 0.0
104
+
105
+ - type: "BBoxSizeEmbedder"
106
+ input_keys: ["bboxes"]
107
+ is_trainable: True
108
+ ucg_rate: 0.0
109
+ params:
110
+ outdim: 768
111
+
112
+ # - type: "RoIAlignExemplarEmbedder"
113
+ # input_keys: ["z_img", "bboxes"]
114
+ # is_trainable: True
115
+ # ucg_rate: 0.0
116
+ # params:
117
+ # in_channels: 16
118
+ # out_channels: 768
119
+ # roi_output_size: 7
120
+ # remove_sequence_dim: False
121
+
122
+ # - type: "FrozenCLIPEmbedder"
123
+ # is_trainable: True
124
+ # input_keys: ["text"]
125
+ # ucg_rate: 0.0
126
+ # params:
127
+ # out_channels: 768
128
+ # layer: hidden
129
+ # layer_idx: 11
130
+ data:
131
+ dataset:
132
+ name: "MCAC"
133
+ params:
134
+ datadir: /d/hpc/projects/FRI/DL/gs1121/MCAC/
135
+ n_exemplars: 3
136
+ image_size: 512
137
+ occ_limit: 70
138
+ M1: False
139
+ hflip_p: 0.5
140
+ vflip_p: 0.0
141
+ mosaic_p: 0.5
142
+ mosaic_avgbbox_h_lim: 50
143
+ mosaic_avgbbox_w_lim: 50
144
+ mosaic_avgbbox_area_lim: 720
145
+ sigma: 0.5
146
+ target_minmax_norm: True
147
+ tlrb_center_sample: False
148
+ tlrb_point_sample: False
149
+ tlrb_radius: 8
150
+ with_tlrb: False
151
+
152
+ dataloader:
153
+ params:
154
+ batch_size: 16
155
+ num_workers: 8
156
+
157
+ train:
158
+ lr: 1.0e-4
159
+ num_epochs: 200
160
+ grad_clip: 1.0
161
+ ema_rate: 0.9999
162
+ validation_interval: 10
163
+ resume_checkpoint: null
164
+ weight_decay: 0.0001
165
+ lr_scheduler: warmup_cosine_anneal
166
+ overfit: False
167
+ mixed_precision: False
168
+ seed: null
169
+
170
+ log:
171
+ logdir: ./logs/
172
+ wandb_mode: online
173
+ log_interval: 100
174
+ save_interval: 50