File size: 5,662 Bytes
a64a285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
    "models": {
        "denoiser": {
            "name": "ElasticSLatFlowModel",
            "args": {
                "resolution": 32,
                "in_channels": 32,
                "out_channels": 32,
                "model_channels": 1536,
                "cond_channels": 1024,
                "num_blocks": 30,
                "num_heads": 12,
                "mlp_ratio": 5.3334,
                "pe_mode": "rope",
                "share_mod": true,
                "initialization": "scaled",
                "qk_rms_norm": true,
                "qk_rms_norm_cross": true
            },
            "lora": {
                "r": 8,
                "alpha": 16
            },
            "projection": {
                "image_size": 512
            }
        }
    },
    "dataset": {
        "name": "SS3DMSLatShape",
        "args": {
            "resolution": 512,
            "image_size": 512,
            "max_num_cond_views": 16,
            "min_aesthetic_score": 4.5,
            "min_tokens": 3000,
            "normalization": {
                "mean": [
                    0.781296,
                    0.018091,
                    -0.495192,
                    -0.558457,
                    1.06053,
                    0.093252,
                    1.518149,
                    -0.933218,
                    -0.732996,
                    2.604095,
                    -0.118341,
                    -2.143904,
                    0.495076,
                    -2.179512,
                    -2.130751,
                    -0.996944,
                    0.261421,
                    -2.217463,
                    1.260067,
                    -0.150213,
                    3.790713,
                    1.481266,
                    -1.046058,
                    -1.523667,
                    -0.059621,
                    2.22078,
                    1.621212,
                    0.87723,
                    0.567247,
                    -3.175944,
                    -3.186688,
                    1.578665
                ],
                "std": [
                    5.972266,
                    4.706852,
                    5.44501,
                    5.209927,
                    5.32022,
                    4.547237,
                    5.020802,
                    5.444004,
                    5.226681,
                    5.683095,
                    4.831436,
                    5.286469,
                    5.652043,
                    5.367606,
                    5.525084,
                    4.730578,
                    4.805265,
                    5.124013,
                    5.530808,
                    5.619001,
                    5.10393,
                    5.41767,
                    5.269677,
                    5.547194,
                    5.634698,
                    5.235274,
                    6.110351,
                    5.511298,
                    6.237273,
                    4.879207,
                    5.347008,
                    5.405691
                ]
            },
            "pretrained_slat_dec": "microsoft/TRELLIS.2-4B/ckpts/shape_dec_next_dc_f16c32_fp16"
        }
    },
    "trainer": {
        "name": "CameraConditionedSparseFlowMatchingCFGTrainer",
        "args": {
            "max_steps": 200000,
            "batch_size_per_gpu": 32,
            "batch_split": 8,
            "num_workers_per_gpu": 8,
            "optimizer": {
                "name": "AdamW",
                "args": {
                    "lr": {
                        "lora": 3e-05,
                        "new": 0.0001,
                        "old": 3e-05
                    },
                    "weight_decay": {
                        "lora": 0.0,
                        "new_weights": 0.01,
                        "old": 0.01
                    },
                    "betas": [
                        0.9,
                        0.95
                    ],
                    "eps": 1e-08
                }
            },
            "lr_scheduler": {
                "name": "LinearWarmupLRScheduler",
                "args": {
                    "warmup_steps": 2000
                }
            },
            "ema_rate": [
                0.9995
            ],
            "snapshot_batch_size": 4,
            "mix_precision_mode": "amp",
            "mix_precision_dtype": "bfloat16",
            "elastic": {
                "name": "LinearMemoryController",
                "args": {
                    "target_ratio": 0.75,
                    "max_mem_ratio_start": 0.5
                }
            },
            "grad_clip": {
                "name": "AdaptiveGradClipper",
                "args": {
                    "max_norm": 1.0,
                    "clip_percentile": 95
                }
            },
            "finetune_ckpt": {
                "denoiser": "checkpoints/shape_gen/ckpts/shape_slat.pt"
            },
            "i_print": 10,
            "i_val": 500,
            "i_log": 10,
            "i_sample": 2000,
            "i_save": 2000,
            "p_uncond": 0.1,
            "t_schedule": {
                "name": "uniform",
                "args": {}
            },
            "sigma_min": 1e-05,
            "image_cond_model": {
                "name": "DinoV3FeatureExtractor",
                "args": {
                    "model_name": "camenduru/dinov3-vitl16-pretrain-lvd1689m",
                    "image_size": 512
                }
            },
            "max_val_samples": 5,
            "num_snapshot_samples": 2,
            "skip_init_snapshot": true
        }
    }
}