SammyLim commited on
Commit
ff72189
·
verified ·
1 Parent(s): 9b4c9a1

Upload refiner_local_upsample_lazy_preserve_ratio_lora_videomama_binary_mix_ratio_polyhole_novideomatte_20261022-145003 steps 31000, 34000

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