SammyLim commited on
Commit
8b5ed89
·
verified ·
1 Parent(s): fb7d5d5

Upload refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850 steps 37000, 40000

Browse files
refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850/checkpoints/epoch_47_step_37000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0144666b76369b0335d1960b4fa6150b436c8e7ba70e3fe46d67ec2f5292d7f
3
+ size 10066108485
refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850/checkpoints/epoch_50_step_40000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf397881410360412a569c2ef33e26e5ee34c5509f7ca1a29b9a9a6043b56f9b
3
+ size 10066108485
refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850/config.yaml ADDED
@@ -0,0 +1,387 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data:
2
+ data_dir: []
3
+ caption_proportion:
4
+ prompt: 1
5
+ external_caption_suffixes: []
6
+ external_clipscore_suffixes: []
7
+ clip_thr_temperature: 1.0
8
+ clip_thr: 0.0
9
+ del_img_clip_thr: 0.0
10
+ sort_dataset: false
11
+ load_text_feat: false
12
+ transform: default_train
13
+ type: VideoMattingCompositingDataset
14
+ image_size: 4096
15
+ hq_only: false
16
+ valid_num: 0
17
+ data: null
18
+ extra: null
19
+ s3_bucket: ''
20
+ s3_prefix: ''
21
+ s3_metadata_key: ''
22
+ s3_region: us-west-2
23
+ dataset_repeat: 1
24
+ frame_sampling: random
25
+ mask_augment_method: downsample,polygon
26
+ downsample_scales:
27
+ - 24
28
+ - 32
29
+ - 48
30
+ polygon_tolerances:
31
+ - 0.004
32
+ - 0.003
33
+ - 0.002
34
+ polygon_keep_holes: true
35
+ binarize_threshold: 127
36
+ preserve_prob: 0.0
37
+ preserve_noise_std: 0.0
38
+ guide_mode: binary
39
+ guide_lowres: 512
40
+ guide_lowres_blur_sigma: 0.0
41
+ guide_lowres_noise_std: 0.0
42
+ include_guide_mask: true
43
+ clip_len: 3
44
+ low_res: 256
45
+ sources: null
46
+ polarizer_fgr_prefixes: []
47
+ greenscreen_fgr_prefixes: []
48
+ bg_prefix: ''
49
+ s3_unsigned: false
50
+ fg_fit_range:
51
+ - -0.2
52
+ - 1.2
53
+ fg_flip_prob: 0.5
54
+ bg_fit_range:
55
+ - 1.0
56
+ - 1.0
57
+ bg_flip_prob: 0.5
58
+ foreground_sources:
59
+ - type: video
60
+ fg_path: VideoMatte240K_JPEG_HD/train/fgr
61
+ alpha_path: VideoMatte240K_JPEG_HD/train/pha
62
+ weight: 1.0
63
+ alpha_black_level: 1
64
+ - type: video
65
+ fg_path: CRGNN/fg
66
+ alpha_path: CRGNN/alpha
67
+ weight: 1.0
68
+ - type: image
69
+ fg_path: AM-2k/train/fg
70
+ alpha_path: AM-2k/train/mask
71
+ weight: 1.0
72
+ - type: image
73
+ fg_path: P3M-10k/train/blurred_image
74
+ alpha_path: P3M-10k/train/mask
75
+ weight: 1.0
76
+ - type: image
77
+ fg_path: AIM-500/original
78
+ alpha_path: AIM-500/mask
79
+ weight: 1.0
80
+ - type: image
81
+ fg_path: Distinctions-646/Train/FG
82
+ alpha_path: Distinctions-646/Train/GT
83
+ weight: 1.0
84
+ background_sources:
85
+ - BG-20k/train
86
+ data_root: /home/ubuntu/data1/samuel/data
87
+ s3_root: ''
88
+ fg_instances:
89
+ - 1
90
+ - 2
91
+ matte_target: subject
92
+ occluder_front_prob: 0.5
93
+ min_subject_visible: 0.1
94
+ max_fg_upscale: 1.0
95
+ min_fg_resolution: 768
96
+ datasets: null
97
+ model:
98
+ model: PixDiTRefinerTrainer
99
+ teacher: null
100
+ image_size: 1024
101
+ mixed_precision: bf16
102
+ fp32_attention: true
103
+ load_from: /home/ubuntu/data1/samuel/data/pretrained_models/PixelDiT-1300M-1024px/pixeldit_t2i_v1.pth
104
+ discriminator_model: null
105
+ teacher_model: null
106
+ teacher_model_weight_dtype: null
107
+ resume_from: null
108
+ aspect_ratio_type: ASPECT_RATIO_1024
109
+ multi_scale: false
110
+ pe_interpolation: 1.0
111
+ micro_condition: false
112
+ attn_type: linear
113
+ autocast_linear_attn: false
114
+ ffn_type: glumbconv
115
+ mlp_acts:
116
+ - silu
117
+ - silu
118
+ - null
119
+ mlp_ratio: 2.5
120
+ use_pe: false
121
+ pos_embed_type: sincos
122
+ qk_norm: false
123
+ class_dropout_prob: 0.0
124
+ linear_head_dim: 32
125
+ cross_norm: false
126
+ cross_attn_type: flash
127
+ logvar: false
128
+ cfg_scale: 4
129
+ cfg_embed: false
130
+ cfg_embed_scale: 1.0
131
+ guidance_type: classifier-free
132
+ ladd_multi_scale: true
133
+ head_block_ids: null
134
+ extra:
135
+ patch_size: 16
136
+ num_groups: 24
137
+ hidden_size: 1536
138
+ pixel_hidden_size: 16
139
+ pixel_attn_hidden_size: 1152
140
+ pixel_num_groups: 16
141
+ patch_depth: 14
142
+ pixel_depth: 2
143
+ num_text_blocks: 4
144
+ txt_embed_dim: 2304
145
+ txt_max_length: 300
146
+ use_text_rope: true
147
+ text_rope_theta: 10000.0
148
+ repa_encoder_index: -1
149
+ cond_image_channels: 6
150
+ feature_source: dinov3
151
+ dino_model: facebook/dinov3-vith16plus-pretrain-lvd1689m
152
+ dino_resolution: 1024
153
+ dino_resolution_ratio: 1
154
+ dino_layer: -1
155
+ dino_feature_dim: 1280
156
+ zero_init_lq: true
157
+ pit_lq_inject: false
158
+ use_preserve_embed: true
159
+ lq_gate_type: residual
160
+ lq_inject_blocks:
161
+ - 0
162
+ - 1
163
+ - 2
164
+ - 3
165
+ - 4
166
+ - 5
167
+ - 6
168
+ - 7
169
+ - 8
170
+ - 9
171
+ - 10
172
+ - 11
173
+ - 12
174
+ - 13
175
+ guide_source: videomama
176
+ binary_guide_prob: 0.5
177
+ videomama_res: 512
178
+ videomama_res_ratio: 0.25
179
+ videomama_base_model: /home/ubuntu/data1/samuel/data/pretrained_models/stable-video-diffusion-img2vid-xt
180
+ videomama_unet_ckpt: /home/ubuntu/data1/samuel/data/pretrained_models/VideoMaMa
181
+ videomama_svd_root: /home/ubuntu/data1/samuel/data/code/VideoMaMa/samuel_svd
182
+ videomama_mask_cond_mode: vae
183
+ vae:
184
+ vae_type: none
185
+ vae_pretrained: none
186
+ weight_dtype: float32
187
+ scale_factor: 1.0
188
+ vae_latent_dim: 3
189
+ vae_downsample_rate: 1
190
+ sample_posterior: false
191
+ extra: null
192
+ text_encoder:
193
+ text_encoder_name: zero
194
+ caption_channels: 2304
195
+ y_norm: true
196
+ y_norm_scale_factor: 0.01
197
+ model_max_length: 300
198
+ chi_prompt: []
199
+ extra: null
200
+ scheduler:
201
+ train_sampling_steps: 1000
202
+ predict_flow_v: true
203
+ noise_schedule: linear_flow
204
+ pred_sigma: false
205
+ learn_sigma: false
206
+ vis_sampler: flow_dpm-solver
207
+ flow_shift: 4.0
208
+ weighting_scheme: logit_normal
209
+ weighting_scheme_discriminator: logit_normal_trigflow
210
+ add_noise_timesteps:
211
+ - 1.5708
212
+ logit_mean: 0.0
213
+ logit_std: 1.0
214
+ logit_mean_discriminator: 0.0
215
+ logit_std_discriminator: 1.0
216
+ sigma_data: 0.5
217
+ timestep_norm_scale_factor: 1.0
218
+ extra: null
219
+ train:
220
+ num_workers: 4
221
+ seed: 1
222
+ train_batch_size: 1
223
+ num_epochs: 100
224
+ gradient_accumulation_steps: 4
225
+ effective_batch_size: 16
226
+ train_resolutions:
227
+ - - 1536
228
+ - 1536
229
+ - - 2048
230
+ - 2048
231
+ - - 2560
232
+ - 2560
233
+ grad_checkpointing: true
234
+ gradient_clip: 0.1
235
+ gc_step: 1
236
+ optimizer:
237
+ betas:
238
+ - 0.9
239
+ - 0.999
240
+ - 0.9999
241
+ eps:
242
+ - 1.0e-30
243
+ - 1.0e-16
244
+ lr: 0.0001
245
+ type: CAMEWrapper
246
+ weight_decay: 0.0
247
+ optimizer_D:
248
+ eps: 1.0e-10
249
+ lr: 0.0001
250
+ type: AdamW
251
+ weight_decay: 0.03
252
+ load_from_optimizer: false
253
+ load_from_lr_scheduler: false
254
+ resume_lr_scheduler: true
255
+ lr_schedule: constant
256
+ lr_schedule_args:
257
+ num_warmup_steps: 1000
258
+ override_lr_on_resume: false
259
+ auto_lr:
260
+ rule: sqrt
261
+ eval_batch_size: 16
262
+ use_fsdp: false
263
+ use_flash_attn: false
264
+ eval_sampling_steps: 500
265
+ log_interval: 20
266
+ mask_type: 'null'
267
+ mask_loss_coef: 0.0
268
+ load_mask_index: false
269
+ snr_loss: false
270
+ real_prompt_ratio: 1.0
271
+ early_stop_hours: 10000.0
272
+ save_image_epochs: 1
273
+ save_model_epochs: 5
274
+ save_model_steps: 1000
275
+ visualize: true
276
+ null_embed_root: /home/ubuntu/data1/samuel/data/training_models/refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850/pretrained_models
277
+ valid_prompt_embed_root: output/tmp_embed/
278
+ validation_prompts:
279
+ - dog
280
+ - portrait photo of a girl, photograph, highly detailed face, depth of field
281
+ - Self-portrait oil painting, a beautiful cyborg with golden hair, 8k
282
+ - Astronaut in a jungle, cold color palette, muted colors, detailed, 8k
283
+ - A photo of beautiful mountain with realistic sunset and blue lake, highly detailed,
284
+ masterpiece
285
+ local_save_vis: true
286
+ deterministic_validation: true
287
+ online_metric: false
288
+ eval_metric_step: 5000
289
+ online_metric_dir: metric_helper
290
+ work_dir: output/pixeldit_refiner_upsample_lazy_preserve_binary_videomama_dyncanvas_ratio_polyhole_local
291
+ skip_step: 0
292
+ loss_type: huber
293
+ huber_c: 0.001
294
+ num_ddim_timesteps: 50
295
+ ema_decay: 0.95
296
+ ema_update: false
297
+ ema_rate: 0.9999
298
+ repa_loss_weight: 0.0
299
+ repa_encoder_index: 14
300
+ mse_weight: 1.0
301
+ video_shared_noise: false
302
+ matting_alpha_weight: 0.0
303
+ matting_grad_weight: 0.0
304
+ matting_lap_weight: 0.0
305
+ matting_lap_levels: 5
306
+ matting_snr_weight: true
307
+ benchmark_eval: false
308
+ benchmark_data_dir: ''
309
+ benchmark_image_subdir: blurred_image
310
+ benchmark_mask_subdir: mask
311
+ benchmark_trimap_subdir: trimap
312
+ benchmark_step: 4000
313
+ benchmark_max_samples: 30
314
+ benchmark_steps: 20
315
+ benchmark_resize_mode: resize
316
+ val_image_dir: /home/ubuntu/data1/samuel/data/youtube_curated_4k/image
317
+ val_mask_dir: /home/ubuntu/data1/samuel/data/youtube_curated_4k/mask
318
+ val_min_resolution: 1536
319
+ patch_shuffle_unit: 0
320
+ patch_shuffle_prob: 1.0
321
+ pack_fg_train: true
322
+ pack_fg_unit: 128
323
+ pack_fg_thresh: 0.02
324
+ pack_fg_dilate: 1
325
+ pack_fg_slice: random
326
+ pack_fg_canvas_resolutions:
327
+ - 1024
328
+ - 1536
329
+ sync_rank_cost_draws: true
330
+ pack_fg_preserve_enable: true
331
+ pack_fg_refine_prob: 0.7
332
+ validation_num: 4
333
+ refiner_val_pack: ''
334
+ pipeline_val_num: 3
335
+ lora_enable: true
336
+ lora_rank: 512
337
+ lora_alpha: 512.0
338
+ lora_dropout: 0.0
339
+ lora_target_modules:
340
+ - all_linear
341
+ lora_exclude_modules:
342
+ - _repa_projector
343
+ - y_embedder
344
+ lora_full_train_modules:
345
+ - s_embedder
346
+ - pixel_embedder
347
+ - final_layer
348
+ - lq_proj
349
+ - pit_lq_gate
350
+ - refine_embed
351
+ - preserve_embed
352
+ refiner:
353
+ enable: false
354
+ vae_path: /home/colligo/sensei/Neurips26/weights/DiffSynth-Studio/Wan-Series-Converted-Safetensors/Wan2.1_VAE.safetensors
355
+ low_res: 256
356
+ z_dim: 16
357
+ min_detail_ratio: 0.25
358
+ max_blur_sigma: 1.0
359
+ max_noise_std: 0.04
360
+ enable_morph: false
361
+ max_morph_kernel: 7
362
+ min_severity: 0.0
363
+ max_severity: 1.0
364
+ degrade_mode: detail
365
+ cutoff_res:
366
+ - 32
367
+ cutoff_blur_sigma: 0.0
368
+ cutoff_noise_std: 0.0
369
+ use_real_coarse: false
370
+ coarse_num_frames: 3
371
+ lq_gate_type: sigma_aware_per_token_per_dim
372
+ coarse_steps: 1
373
+ coarse_ckpt: ''
374
+ coarse_base_wan: /home/colligo/sensei/Neurips26/weights/Wan-AI/Wan2.1-T2V-1.3B/diffusion_pytorch_model.safetensors
375
+ coarse_text_encoder: /home/colligo/sensei/Neurips26/weights/DiffSynth-Studio/Wan-Series-Converted-Safetensors/models_t5_umt5-xxl-enc-bf16.safetensors
376
+ coarse_tokenizer: /home/colligo/sensei/Neurips26/weights/Wan-AI/Wan2.1-T2V-1.3B/google/umt5-xxl
377
+ coarse_context: /home/colligo/data/pretrained_models/coarse_native/matting_context_umt5.pt
378
+ coarse_lora_alpha: 1.0
379
+ work_dir: /home/ubuntu/data1/samuel/data/training_models/refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850
380
+ resume_from: null
381
+ load_from: /home/ubuntu/data1/samuel/data/pretrained_models/PixelDiT-1300M-1024px/pixeldit_t2i_v1.pth
382
+ debug: false
383
+ caching: false
384
+ report_to: wandb
385
+ tracker_project_name: pixeldit_refiner_local
386
+ name: refiner_local_upsample_lazy_preserve_ratio_rearange_ablation_dino_injection_lora_videomama_binary_mix_ratio_polyhole_rerange_dinoh_injectall_20261104-102850
387
+ loss_report_name: loss