Miayan commited on
Commit
ca2dfd8
·
verified ·
1 Parent(s): b8fc412

Add checkpoint for train_ex11

Browse files
train_ex11/checkpoint-235260/albedo_estimator/config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AlbedoWrapper",
3
+ "_diffusers_version": "0.33.1",
4
+ "cfg": {
5
+ "enabled": true,
6
+ "frozen_components": [
7
+ "ord_model",
8
+ "iid_model",
9
+ "col_model"
10
+ ],
11
+ "load_stage": 3,
12
+ "trainable_components": [
13
+ "alb_model"
14
+ ],
15
+ "version": "v2"
16
+ }
17
+ }
train_ex11/checkpoint-235260/albedo_estimator/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f295dff198473183f646f659c55f32d2e7881772dd0fc24a9d3cc1c2d1a028f
3
+ size 422422660
train_ex11/checkpoint-235260/controlnet/config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "ControlNetModel",
3
+ "_diffusers_version": "0.33.1",
4
+ "act_fn": "silu",
5
+ "addition_embed_type": null,
6
+ "addition_embed_type_num_heads": 64,
7
+ "addition_time_embed_dim": null,
8
+ "attention_head_dim": [
9
+ 5,
10
+ 10,
11
+ 20,
12
+ 20
13
+ ],
14
+ "block_out_channels": [
15
+ 320,
16
+ 640,
17
+ 1280,
18
+ 1280
19
+ ],
20
+ "class_embed_type": null,
21
+ "conditioning_channels": 6,
22
+ "conditioning_embedding_out_channels": [
23
+ 16,
24
+ 32,
25
+ 96,
26
+ 256
27
+ ],
28
+ "controlnet_conditioning_channel_order": "rgb",
29
+ "cross_attention_dim": 1024,
30
+ "down_block_types": [
31
+ "CrossAttnDownBlock2D",
32
+ "CrossAttnDownBlock2D",
33
+ "CrossAttnDownBlock2D",
34
+ "DownBlock2D"
35
+ ],
36
+ "downsample_padding": 1,
37
+ "encoder_hid_dim": null,
38
+ "encoder_hid_dim_type": null,
39
+ "flip_sin_to_cos": true,
40
+ "freq_shift": 0,
41
+ "global_pool_conditions": false,
42
+ "in_channels": 4,
43
+ "layers_per_block": 2,
44
+ "mid_block_scale_factor": 1,
45
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
46
+ "norm_eps": 1e-05,
47
+ "norm_num_groups": 32,
48
+ "num_attention_heads": null,
49
+ "num_class_embeds": null,
50
+ "only_cross_attention": false,
51
+ "projection_class_embeddings_input_dim": null,
52
+ "resnet_time_scale_shift": "default",
53
+ "transformer_layers_per_block": 1,
54
+ "upcast_attention": true,
55
+ "use_linear_projection": true
56
+ }
train_ex11/checkpoint-235260/controlnet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c8e063c76b1ec92d164449063bd26207543711c8c8b0116120e07194d5e8430
3
+ size 1461729992
train_ex11/checkpoint-235260/custom_encoder/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Ba": 4,
3
+ "Bc": 4,
4
+ "Bi": 4,
5
+ "K": 4,
6
+ "_class_name": "CustomEncoder",
7
+ "_diffusers_version": "0.33.1",
8
+ "cross_dim": 1024
9
+ }
train_ex11/checkpoint-235260/custom_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12f27088d479409967a31d8206062940b0705bf0bbe9a3ce26f34def27b20a1d
3
+ size 4541016
train_ex11/checkpoint-235260/custom_unet.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9499382c9ecb6d5ff64abfbcb0f76228ca7d325b4bcc57583d2599e3c3488692
3
+ size 3463973299
train_ex11/checkpoint-235260/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf117194e8d40a4faae2d28e072914988eafa28fb25e7bddac1afbc95b7d828d
3
+ size 6407500783
train_ex11/checkpoint-235260/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c111a9e3aeed2f69c5f674696908bde40e2a8ed9a3ff423fd18357484b89c25
3
+ size 14757
train_ex11/checkpoint-235260/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f2bf6325ce12a3caa925c7153dfb341055dbe7f64dae17474e39c554ccc0f5f
3
+ size 1401
train_ex11/config.yaml ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ experiment:
2
+ project_name: relighting_indoors
3
+ output_dir: train_ex11
4
+ logging_dir: logs
5
+ report_to: tensorboard
6
+ model:
7
+ pretrained_model_name_or_path: /mnt/HDD3/miayan/paper/envs/huggingface_cache/models--stabilityai--stable-diffusion-2-1/snapshots/5cae40e6a2745ae2b01ad92ae5043f95f23644d6
8
+ revision: null
9
+ variant: null
10
+ tokenizer_name: null
11
+ hf_repo_id: Miayan/project
12
+ hf_version: null
13
+ pretrain_unet_path: scribblelight_controlnet/checkpoint-10000
14
+ resume_from_checkpoint: latest
15
+ enable_ambient_cond: true
16
+ light_encoder:
17
+ cross_dim: 512
18
+ K: 4
19
+ Bi: 4
20
+ Bc: 4
21
+ Ba: 4
22
+ albedo_estimator:
23
+ enabled: true
24
+ version: v2
25
+ load_stage: 3
26
+ frozen_components:
27
+ - ord_model
28
+ - iid_model
29
+ - col_model
30
+ trainable_components:
31
+ - alb_model
32
+ data:
33
+ dataset_cache_dir: /mnt/HDD3/miayan/paper/relighting_datasets/
34
+ data_hf_repo_id: Miayan/physical-relighting-dataset
35
+ data_split: test
36
+ resolution: 512
37
+ dataloader_num_workers: 0
38
+ condition_mode: lightmap_normal
39
+ relighting_impl: gemini_amb
40
+ use_ambient_in_controlnet: false
41
+ use_color_on_lightmap: true
42
+ colors:
43
+ - - 255
44
+ - 255
45
+ - 255
46
+ - - 255
47
+ - 0
48
+ - 0
49
+ - - 0
50
+ - 255
51
+ - 0
52
+ - - 0
53
+ - 0
54
+ - 255
55
+ - - 255
56
+ - 255
57
+ - 0
58
+ - - 255
59
+ - 165
60
+ - 0
61
+ - - 128
62
+ - 0
63
+ - 128
64
+ - - 255
65
+ - 192
66
+ - 203
67
+ - - 0
68
+ - 255
69
+ - 255
70
+ - - 255
71
+ - 0
72
+ - 255
73
+ intensities:
74
+ - 0.0
75
+ - 0.1
76
+ - 0.2
77
+ - 0.4
78
+ - 0.7
79
+ - 1.0
80
+ training:
81
+ batch_size: 1
82
+ num_epochs: 20
83
+ max_train_steps: null
84
+ max_train_samples: null
85
+ seed: 42
86
+ mixed_precision: 'no'
87
+ allow_tf32: true
88
+ gradient_accumulation_steps: 1
89
+ checkpointing_steps: 5000
90
+ checkpoints_total_limit: 3
91
+ learning_rate: 5.0e-06
92
+ scale_lr: false
93
+ lr_scheduler: constant
94
+ lr_warmup_steps: 500
95
+ adam_beta1: 0.9
96
+ adam_beta2: 0.999
97
+ adam_weight_decay: 0.01
98
+ adam_epsilon: 1.0e-08
99
+ max_grad_norm: 1.0
100
+ use_8bit_adam: false
101
+ set_grads_to_none: false
102
+ losses:
103
+ phys_loss:
104
+ enabled: true
105
+ weight: 1.0
106
+ latent_loss:
107
+ enabled: true
108
+ weight: 1.0
109
+ image_loss:
110
+ enabled: true
111
+ weight: 1.0
112
+ ssim_loss:
113
+ enabled: false
114
+ weight: 0.2
115
+ area_loss:
116
+ enabled: false
117
+ weight: 10.0
118
+ intensity_loss:
119
+ enabled: false
120
+ weight: 1.0
121
+ recon_loss:
122
+ enabled: false
123
+ weight: 1.0
124
+ keep_aux_models_on_gpu: true
125
+ sup_structure_loss:
126
+ enabled: true
127
+ weight: 1.0
128
+ enable_decay: true
129
+ start_weight: 1.0
130
+ end_weight: 0.1
131
+ decay_steps: 5000
132
+ self_recon_loss:
133
+ enabled: true
134
+ mode: teacher
135
+ weight: 2.0
136
+ affine_alignment: true
137
+ epsilon: 0.05
138
+ staging:
139
+ switch_epoch: 5
140
+ stage1_weight: 2.0
141
+ stage2_weight: 0.5
142
+ consistency_loss:
143
+ enabled: true
144
+ weight: 1.0