noguchis commited on
Commit
77a85c7
1 Parent(s): 3091c1a

First model version

Browse files
config.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_args": {
3
+ "remove_empty_masks": false,
4
+ "load_point_clouds": false,
5
+ "load_depths": false,
6
+ "load_depth_masks": false,
7
+ "load_masks": false,
8
+ "box_crop": false,
9
+ "image_width": null,
10
+ "image_height": null,
11
+ "pick_sequence": [],
12
+ "exclude_sequence": [],
13
+ "n_frames_per_sequence": -1
14
+ },
15
+ "batch": {
16
+ "n_parallel_images": 3,
17
+ "image_width": 256,
18
+ "image_height": 256,
19
+ "other_selection": "mix",
20
+ "other_selection_frame_indices": [],
21
+ "sequence_offset": 1,
22
+ "crop": "random",
23
+ "mask_foreground": false,
24
+ "prompt": "Editorial Style Photo, ${category}, 4k --ar 16:9",
25
+ "use_blip_prompt": true,
26
+ "load_recentered": true,
27
+ "replace_pose_with_spherical_start_phi": -400.0,
28
+ "replace_pose_with_spherical_end_phi": 360.0,
29
+ "replace_pose_with_spherical_phi_endpoint": false,
30
+ "replace_pose_with_spherical_radius": 4.0,
31
+ "replace_pose_with_spherical_theta": 45.0
32
+ },
33
+ "co3d_root": "/mnt/data/shoji_noguchi/venv/viewdiff/ViewDiff/co3d/dataset",
34
+ "category": "teddybear",
35
+ "subset": null,
36
+ "split": null,
37
+ "max_sequences": 50,
38
+ "seed": 42,
39
+ "training": {
40
+ "validation_epochs": 1,
41
+ "train_batch_size": 1,
42
+ "num_train_epochs": 1000,
43
+ "max_train_steps": null,
44
+ "dataloader_num_workers": 0,
45
+ "local_rank": -1,
46
+ "mixed_precision": "no",
47
+ "noise_prediction_type": "epsilon",
48
+ "remove_cfa_skip_connections_at_iter": -1,
49
+ "changed_cfa_last_layer": "no_residual_connection",
50
+ "dreambooth_prior_preservation_loss_weight": 0.1,
51
+ "dreambooth_prior_preservation_every_nth": 1,
52
+ "prob_images_not_noisy": 0.25,
53
+ "max_num_images_not_noisy": 2
54
+ },
55
+ "optimizer": {
56
+ "learning_rate": 5e-05,
57
+ "vol_rend_learning_rate": 0.001,
58
+ "vol_rend_adam_weight_decay": 0.0,
59
+ "scale_lr": false,
60
+ "lr_scheduler": "constant",
61
+ "lr_warmup_steps": 500,
62
+ "use_8bit_adam": false,
63
+ "allow_tf32": false,
64
+ "adam_beta1": 0.9,
65
+ "adam_beta2": 0.999,
66
+ "adam_weight_decay": 0.01,
67
+ "adam_epsilon": 1e-08,
68
+ "max_grad_norm": 0.005,
69
+ "gradient_accumulation_steps": 1,
70
+ "only_train_new_layers": false
71
+ },
72
+ "model": {
73
+ "n_input_images": 3,
74
+ "pose_cond_mode": "sa-ca",
75
+ "pose_cond_coord_space": "absolute",
76
+ "pose_cond_lora_rank": 64,
77
+ "pose_cond_dim": 10,
78
+ "conditioning_dropout_prob": 0.1,
79
+ "use_ema": false,
80
+ "enable_xformers_memory_efficient_attention": false,
81
+ "gradient_checkpointing": false
82
+ },
83
+ "cross_frame_attention": {
84
+ "mode": "pretrained",
85
+ "n_cfa_down_blocks": 0,
86
+ "n_cfa_up_blocks": 0,
87
+ "no_cfa_in_mid_block": false,
88
+ "to_k_other_frames": 2,
89
+ "with_self_attention": true,
90
+ "random_others": true,
91
+ "last_layer_mode": "no_residual_connection",
92
+ "unproj_reproj_mode": "only_unproj_reproj",
93
+ "num_3d_layers": 1,
94
+ "dim_3d_latent": 16,
95
+ "dim_3d_grid": 64,
96
+ "vol_rend_proj_in_mode": "multiple",
97
+ "vol_rend_proj_out_mode": "multiple",
98
+ "vol_rend_aggregator_mode": "ibrnet",
99
+ "vol_rend_model_background": true,
100
+ "vol_rend_background_grid_percentage": 0.5,
101
+ "vol_rend_disparity_at_inf": 0.5,
102
+ "n_novel_images": 1,
103
+ "use_temb_cond": true
104
+ },
105
+ "io": {
106
+ "save": {
107
+ "image_grids": false,
108
+ "pred_files": true,
109
+ "pred_video": true,
110
+ "pred_gif": false,
111
+ "denoise_files": false,
112
+ "denoise_video": false,
113
+ "cams": true,
114
+ "prompts": true,
115
+ "rendered_depth": false,
116
+ "cond_files": false,
117
+ "image_metrics": true
118
+ },
119
+ "pretrained_model_name_or_path": "stabilityai/stable-diffusion-2-1-base",
120
+ "revision": null,
121
+ "output_dir": "outputs/train/teddybear/50_sequences/subset_all/input_3/train/train_teddybear",
122
+ "experiment_name": "train_teddybear",
123
+ "logging_dir": "logs",
124
+ "log_images_every_nth": 500,
125
+ "report_to": "custom_tensorboard",
126
+ "checkpointing_steps": 500,
127
+ "checkpoints_total_limit": 2,
128
+ "resume_from_checkpoint": null,
129
+ "automatic_checkpoint_resume": false
130
+ },
131
+ "selected_sequences": {
132
+ "train": [
133
+ "391_46974_93640",
134
+ "373_41560_82975",
135
+ "46_2596_7562",
136
+ "393_47968_95188",
137
+ "534_77570_150656",
138
+ "444_63772_125902",
139
+ "38_1675_5008",
140
+ "457_64379_126856",
141
+ "42_2104_6430",
142
+ "387_46466_92678",
143
+ "392_47802_94952",
144
+ "353_37579_70740",
145
+ "380_44886_89716",
146
+ "598_91959_182995",
147
+ "392_47443_94381",
148
+ "38_1686_5058",
149
+ "540_78977_153006",
150
+ "46_2595_7548",
151
+ "392_47834_94937",
152
+ "612_97540_195796",
153
+ "387_46699_92990",
154
+ "394_48750_96460",
155
+ "341_35542_65393",
156
+ "391_46884_93389",
157
+ "246_26304_51384",
158
+ "394_48525_95999",
159
+ "482_68882_133595",
160
+ "392_47808_94891",
161
+ "353_37349_70281",
162
+ "387_46523_92748",
163
+ "616_99318_199096",
164
+ "394_48514_95986",
165
+ "387_46530_92758",
166
+ "575_84513_166963",
167
+ "472_66680_130870",
168
+ "537_78247_152118",
169
+ "378_44012_87822",
170
+ "392_47776_94858",
171
+ "377_43705_87007",
172
+ "392_47498_94471",
173
+ "612_97904_197160",
174
+ "604_93996_187948",
175
+ "392_47757_94835",
176
+ "620_101667_204118",
177
+ "504_72676_141358",
178
+ "620_101591_203905",
179
+ "475_67237_131972",
180
+ "444_63708_125709",
181
+ "377_43631_86945",
182
+ "579_85828_169718"
183
+ ],
184
+ "val": [
185
+ "581_86292_171292"
186
+ ]
187
+ }
188
+ }
feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "feature_extractor_type": "CLIPFeatureExtractor",
12
+ "image_mean": [
13
+ 0.48145466,
14
+ 0.4578275,
15
+ 0.40821073
16
+ ],
17
+ "image_processor_type": "CLIPImageProcessor",
18
+ "image_std": [
19
+ 0.26862954,
20
+ 0.26130258,
21
+ 0.27577711
22
+ ],
23
+ "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "shortest_edge": 224
27
+ }
28
+ }
model_index.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "CustomStableDiffusionPipeline",
3
+ "_diffusers_version": "0.21.2",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2-1-base",
5
+ "feature_extractor": [
6
+ "transformers",
7
+ "CLIPImageProcessor"
8
+ ],
9
+ "requires_safety_checker": false,
10
+ "safety_checker": [
11
+ null,
12
+ null
13
+ ],
14
+ "scheduler": [
15
+ "diffusers",
16
+ "PNDMScheduler"
17
+ ],
18
+ "text_encoder": [
19
+ "transformers",
20
+ "CLIPTextModel"
21
+ ],
22
+ "tokenizer": [
23
+ "transformers",
24
+ "CLIPTokenizer"
25
+ ],
26
+ "unet": [
27
+ "viewdiff.model.custom_unet_2d_condition",
28
+ "UNet2DConditionCrossFrameInExistingAttnModel"
29
+ ],
30
+ "vae": [
31
+ "diffusers",
32
+ "AutoencoderKL"
33
+ ]
34
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "PNDMScheduler",
3
+ "_diffusers_version": "0.21.2",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "num_train_timesteps": 1000,
9
+ "prediction_type": "epsilon",
10
+ "set_alpha_to_one": false,
11
+ "skip_prk_steps": true,
12
+ "steps_offset": 1,
13
+ "timestep_spacing": "leading",
14
+ "trained_betas": null
15
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "stabilityai/stable-diffusion-2-1-base",
3
+ "architectures": [
4
+ "CLIPTextModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dropout": 0.0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_size": 1024,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 23,
20
+ "pad_token_id": 1,
21
+ "projection_dim": 512,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.36.0",
24
+ "vocab_size": 49408
25
+ }
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67e013543d4fac905c882e2993d86a2d454ee69dc9e8f37c0c23d33a48959d15
3
+ size 1361596304
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "!",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "!",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "49406": {
13
+ "content": "<|startoftext|>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "49407": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "bos_token": "<|startoftext|>",
30
+ "clean_up_tokenization_spaces": true,
31
+ "do_lower_case": true,
32
+ "eos_token": "<|endoftext|>",
33
+ "errors": "replace",
34
+ "model_max_length": 77,
35
+ "pad_token": "!",
36
+ "tokenizer_class": "CLIPTokenizer",
37
+ "unk_token": "<|endoftext|>"
38
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
unet/config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionCrossFrameInExistingAttnModel",
3
+ "_diffusers_version": "0.21.2",
4
+ "_name_or_path": "outputs/train/teddybear/50_sequences/subset_all/input_3/train/train_teddybear/checkpoint-1061000/unet",
5
+ "act_fn": "silu",
6
+ "addition_embed_type": null,
7
+ "addition_embed_type_num_heads": 64,
8
+ "addition_time_embed_dim": null,
9
+ "attention_head_dim": [
10
+ 5,
11
+ 10,
12
+ 20,
13
+ 20
14
+ ],
15
+ "attention_type": "default",
16
+ "block_out_channels": [
17
+ 320,
18
+ 640,
19
+ 1280,
20
+ 1280
21
+ ],
22
+ "center_input_sample": false,
23
+ "class_embed_type": null,
24
+ "class_embeddings_concat": false,
25
+ "conv_in_kernel": 3,
26
+ "conv_out_kernel": 3,
27
+ "cross_attention_dim": 1024,
28
+ "cross_attention_norm": null,
29
+ "dim_3d_grid": 64,
30
+ "dim_3d_latent": 16,
31
+ "down_block_types": [
32
+ "CrossAttnDownBlock2D",
33
+ "CrossAttnDownBlock2D",
34
+ "CrossAttnDownBlock2D",
35
+ "DownBlock2D"
36
+ ],
37
+ "downsample_padding": 1,
38
+ "dropout": 0.0,
39
+ "dual_cross_attention": false,
40
+ "encoder_hid_dim": null,
41
+ "encoder_hid_dim_type": null,
42
+ "flip_sin_to_cos": true,
43
+ "freq_shift": 0,
44
+ "in_channels": 4,
45
+ "last_layer_mode": "no_residual_connection",
46
+ "layers_per_block": 2,
47
+ "mid_block_only_cross_attention": null,
48
+ "mid_block_scale_factor": 1,
49
+ "mid_block_type": "UNetMidBlock2DCrossFrameInExistingAttn",
50
+ "n_input_images": 3,
51
+ "n_novel_images": 1,
52
+ "network_alpha": null,
53
+ "norm_eps": 1e-05,
54
+ "norm_num_groups": 32,
55
+ "num_3d_layers": 1,
56
+ "num_attention_heads": null,
57
+ "num_class_embeds": null,
58
+ "only_cross_attention": false,
59
+ "out_channels": 4,
60
+ "pose_cond_dim": 10,
61
+ "projection_class_embeddings_input_dim": null,
62
+ "random_others": true,
63
+ "rank": 64,
64
+ "resnet_out_scale_factor": 1.0,
65
+ "resnet_skip_time_act": false,
66
+ "resnet_time_scale_shift": "default",
67
+ "sample_size": 64,
68
+ "temb_out_size": 8,
69
+ "time_cond_proj_dim": null,
70
+ "time_embedding_act_fn": null,
71
+ "time_embedding_dim": null,
72
+ "time_embedding_type": "positional",
73
+ "timestep_post_act": null,
74
+ "to_k_other_frames": 2,
75
+ "transformer_layers_per_block": 1,
76
+ "unproj_reproj_mode": "only_unproj_reproj",
77
+ "up_block_types": [
78
+ "UpBlock2D",
79
+ "CrossAttnUpBlock2D",
80
+ "CrossAttnUpBlock2D",
81
+ "CrossAttnUpBlock2D"
82
+ ],
83
+ "upcast_attention": false,
84
+ "use_linear_projection": true,
85
+ "use_lora_in_cfa": false,
86
+ "use_temb_in_lora": true,
87
+ "vol_rend_aggregator_mode": "ibrnet",
88
+ "vol_rend_background_grid_percentage": 0.5,
89
+ "vol_rend_disparity_at_inf": 0.5,
90
+ "vol_rend_model_background": true,
91
+ "vol_rend_proj_in_mode": "multiple",
92
+ "vol_rend_proj_out_mode": "multiple"
93
+ }
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:105a721d2f67f4e4f053dd51358cca7dc4aaec91c633ee835b971fb0110d8296
3
+ size 3646552956
unet/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d198e42acfc4e1b18e816d8f180e21926425ab3adcbec339bf890668738af22
3
+ size 106309656
vae/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.21.2",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2-1-base",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "force_upcast": true,
19
+ "in_channels": 3,
20
+ "latent_channels": 4,
21
+ "layers_per_block": 2,
22
+ "norm_num_groups": 32,
23
+ "out_channels": 3,
24
+ "sample_size": 768,
25
+ "scaling_factor": 0.18215,
26
+ "up_block_types": [
27
+ "UpDecoderBlock2D",
28
+ "UpDecoderBlock2D",
29
+ "UpDecoderBlock2D",
30
+ "UpDecoderBlock2D"
31
+ ]
32
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa1f43011b553a4cba7f37456465cdbd48aab7b54b9348b890e8058ea7683ec
3
+ size 334643268