Miayan commited on
Commit
7172bac
·
verified ·
1 Parent(s): 476d8b2

Add checkpoint for train_ex8_4

Browse files
train_ex8_4/checkpoint-235000/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_ex8_4/checkpoint-235000/albedo_estimator/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:612ab9aa18cd8597507323c005854656e3789de5bac0d217f6ef5eea24c1333f
3
+ size 422422660
train_ex8_4/checkpoint-235000/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_ex8_4/checkpoint-235000/controlnet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:667d597de2087ead40c620b944268d0da3745d62ffd335a1a4f6598016d01913
3
+ size 1461729992
train_ex8_4/checkpoint-235000/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_ex8_4/checkpoint-235000/custom_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc3539fb3525894d6c6f8a782b0b83105b22ce51a3b9455877f80a4df707782d
3
+ size 4541016
train_ex8_4/checkpoint-235000/custom_unet.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24debed27e0b6a5832e8c8439202409490278525818b6a2015f3989c96a2a4dd
3
+ size 3463973299
train_ex8_4/checkpoint-235000/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62df20b32d15bceccd6e7b239b3f1c5da731a38042a780396b7c7b28ddb3e48b
3
+ size 6407500783
train_ex8_4/checkpoint-235000/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17798471615d86f31144669fa5fb0b7c46cb8fd697f32b2a440106bc9d7ead50
3
+ size 14821
train_ex8_4/checkpoint-235000/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d12031bb7c68d1965b9962c3715f5b420ecca0a3e10fa2490c4b73141a232943
3
+ size 1401
train_ex8_4/config.yaml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ experiment:
2
+ project_name: relighting_indoors
3
+ output_dir: train_ex8_4
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: 768
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: 256
37
+ dataloader_num_workers: 0
38
+ condition_mode: lightmap_normal
39
+ relighting_impl: gemini_amb
40
+ colors:
41
+ - - 255
42
+ - 255
43
+ - 255
44
+ - - 255
45
+ - 0
46
+ - 0
47
+ - - 0
48
+ - 255
49
+ - 0
50
+ - - 0
51
+ - 0
52
+ - 255
53
+ - - 255
54
+ - 255
55
+ - 0
56
+ - - 255
57
+ - 165
58
+ - 0
59
+ - - 128
60
+ - 0
61
+ - 128
62
+ - - 255
63
+ - 192
64
+ - 203
65
+ - - 0
66
+ - 255
67
+ - 255
68
+ - - 255
69
+ - 0
70
+ - 255
71
+ intensities:
72
+ - 0.0
73
+ - 0.1
74
+ - 0.2
75
+ - 0.4
76
+ - 0.7
77
+ - 1.0
78
+ training:
79
+ batch_size: 1
80
+ num_epochs: 20
81
+ max_train_steps: null
82
+ max_train_samples: null
83
+ seed: 42
84
+ mixed_precision: 'no'
85
+ allow_tf32: true
86
+ gradient_accumulation_steps: 1
87
+ checkpointing_steps: 5000
88
+ checkpoints_total_limit: null
89
+ learning_rate: 5.0e-06
90
+ scale_lr: false
91
+ lr_scheduler: constant
92
+ lr_warmup_steps: 500
93
+ adam_beta1: 0.9
94
+ adam_beta2: 0.999
95
+ adam_weight_decay: 0.01
96
+ adam_epsilon: 1.0e-08
97
+ max_grad_norm: 1.0
98
+ use_8bit_adam: false
99
+ set_grads_to_none: false
100
+ losses:
101
+ phys_loss:
102
+ enabled: true
103
+ weight: 1.0
104
+ latent_loss:
105
+ enabled: true
106
+ weight: 1.0
107
+ image_loss:
108
+ enabled: true
109
+ weight: 1.0
110
+ area_loss:
111
+ enabled: false
112
+ weight: 10.0
113
+ intensity_loss:
114
+ enabled: false
115
+ weight: 1.0
116
+ recon_loss:
117
+ enabled: false
118
+ weight: 1.0
119
+ keep_aux_models_on_gpu: true