nroggendorff commited on
Commit
8207252
1 Parent(s): b86bf50
logs/text2image-fine-tune/1713653217.150866/events.out.tfevents.1713653217.r-nroggendorff-jupyter-hz4x4swz-870f3-uz007.653.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48a4539245f8e51c7b65ea37d1b5c11dc5e2138e3dd3e3e59c2d005411766e34
3
+ size 2257
logs/text2image-fine-tune/1713653217.1672676/hparams.yml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.01
5
+ allow_tf32: false
6
+ cache_dir: null
7
+ caption_column: text
8
+ center_crop: false
9
+ checkpointing_steps: 100000
10
+ checkpoints_total_limit: null
11
+ dataloader_num_workers: 0
12
+ dataset_config_name: null
13
+ dataset_name: nroggendorff/zelda
14
+ enable_xformers_memory_efficient_attention: false
15
+ gradient_accumulation_steps: 1
16
+ gradient_checkpointing: false
17
+ hub_model_id: null
18
+ hub_token: null
19
+ image_column: image
20
+ input_perturbation: 0
21
+ learning_rate: 0.0001
22
+ local_rank: -1
23
+ logging_dir: logs
24
+ lr_scheduler: constant
25
+ lr_warmup_steps: 500
26
+ max_grad_norm: 1.0
27
+ max_train_samples: null
28
+ max_train_steps: 1000
29
+ mixed_precision: fp16
30
+ noise_offset: 0
31
+ non_ema_revision: null
32
+ num_train_epochs: 10
33
+ output_dir: sd-zelda-model
34
+ prediction_type: null
35
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0
36
+ push_to_hub: false
37
+ random_flip: false
38
+ report_to: tensorboard
39
+ resolution: 384
40
+ resume_from_checkpoint: null
41
+ revision: null
42
+ scale_lr: false
43
+ seed: null
44
+ snr_gamma: null
45
+ tracker_project_name: text2image-fine-tune
46
+ train_batch_size: 1
47
+ train_data_dir: null
48
+ use_8bit_adam: false
49
+ use_ema: false
50
+ validation_epochs: 5
51
+ variant: null
logs/text2image-fine-tune/1713653355.345343/events.out.tfevents.1713653355.r-nroggendorff-jupyter-hz4x4swz-870f3-uz007.726.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cf0a33c2372715b6ad344e864c74bd3be0106e7b5ac48ff5a983f196d19dba0
3
+ size 2249
logs/text2image-fine-tune/1713653355.3618417/hparams.yml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.01
5
+ allow_tf32: false
6
+ cache_dir: null
7
+ caption_column: text
8
+ center_crop: false
9
+ checkpointing_steps: 100000
10
+ checkpoints_total_limit: null
11
+ dataloader_num_workers: 0
12
+ dataset_config_name: null
13
+ dataset_name: nroggendorff/zelda
14
+ enable_xformers_memory_efficient_attention: false
15
+ gradient_accumulation_steps: 1
16
+ gradient_checkpointing: false
17
+ hub_model_id: null
18
+ hub_token: null
19
+ image_column: image
20
+ input_perturbation: 0
21
+ learning_rate: 0.0001
22
+ local_rank: -1
23
+ logging_dir: logs
24
+ lr_scheduler: constant
25
+ lr_warmup_steps: 500
26
+ max_grad_norm: 1.0
27
+ max_train_samples: null
28
+ max_train_steps: 1000
29
+ mixed_precision: fp16
30
+ noise_offset: 0
31
+ non_ema_revision: null
32
+ num_train_epochs: 10
33
+ output_dir: sd-zelda-model
34
+ prediction_type: null
35
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-2-1
36
+ push_to_hub: false
37
+ random_flip: false
38
+ report_to: tensorboard
39
+ resolution: 384
40
+ resume_from_checkpoint: null
41
+ revision: null
42
+ scale_lr: false
43
+ seed: null
44
+ snr_gamma: null
45
+ tracker_project_name: text2image-fine-tune
46
+ train_batch_size: 1
47
+ train_data_dir: null
48
+ use_8bit_adam: false
49
+ use_ema: false
50
+ validation_epochs: 5
51
+ variant: null
logs/text2image-fine-tune/events.out.tfevents.1713653217.r-nroggendorff-jupyter-hz4x4swz-870f3-uz007.653.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d0b84ded0cd65f8c9df0b944ad1b7f690940391c42681b1d4f811b7949d0754
3
+ size 88
logs/text2image-fine-tune/events.out.tfevents.1713653355.r-nroggendorff-jupyter-hz4x4swz-870f3-uz007.726.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea357e20abfac01ae3abccc188d039c1d24ba007811839491897159930201a82
3
+ size 48961
model_index.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
  "_diffusers_version": "0.28.0.dev0",
4
- "_name_or_path": "runwayml/stable-diffusion-v1-5",
5
  "feature_extractor": [
6
  "transformers",
7
  "CLIPImageProcessor"
@@ -10,14 +10,14 @@
10
  null,
11
  null
12
  ],
13
- "requires_safety_checker": true,
14
  "safety_checker": [
15
- "stable_diffusion",
16
- "StableDiffusionSafetyChecker"
17
  ],
18
  "scheduler": [
19
  "diffusers",
20
- "PNDMScheduler"
21
  ],
22
  "text_encoder": [
23
  "transformers",
 
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
  "_diffusers_version": "0.28.0.dev0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2-1",
5
  "feature_extractor": [
6
  "transformers",
7
  "CLIPImageProcessor"
 
10
  null,
11
  null
12
  ],
13
+ "requires_safety_checker": false,
14
  "safety_checker": [
15
+ null,
16
+ null
17
  ],
18
  "scheduler": [
19
  "diffusers",
20
+ "DDIMScheduler"
21
  ],
22
  "text_encoder": [
23
  "transformers",
scheduler/scheduler_config.json CHANGED
@@ -1,15 +1,20 @@
1
  {
2
- "_class_name": "PNDMScheduler",
3
  "_diffusers_version": "0.28.0.dev0",
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
  }
 
1
  {
2
+ "_class_name": "DDIMScheduler",
3
  "_diffusers_version": "0.28.0.dev0",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
7
  "clip_sample": false,
8
+ "clip_sample_range": 1.0,
9
+ "dynamic_thresholding_ratio": 0.995,
10
  "num_train_timesteps": 1000,
11
+ "prediction_type": "v_prediction",
12
+ "rescale_betas_zero_snr": false,
13
+ "sample_max_value": 1.0,
14
  "set_alpha_to_one": false,
15
  "skip_prk_steps": true,
16
  "steps_offset": 1,
17
+ "thresholding": false,
18
  "timestep_spacing": "leading",
19
  "trained_betas": null
20
  }
text_encoder/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "runwayml/stable-diffusion-v1-5",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
@@ -7,18 +7,18 @@
7
  "bos_token_id": 0,
8
  "dropout": 0.0,
9
  "eos_token_id": 2,
10
- "hidden_act": "quick_gelu",
11
- "hidden_size": 768,
12
  "initializer_factor": 1.0,
13
  "initializer_range": 0.02,
14
- "intermediate_size": 3072,
15
  "layer_norm_eps": 1e-05,
16
  "max_position_embeddings": 77,
17
  "model_type": "clip_text_model",
18
- "num_attention_heads": 12,
19
- "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
- "projection_dim": 768,
22
  "torch_dtype": "float16",
23
  "transformers_version": "4.40.0",
24
  "vocab_size": 49408
 
1
  {
2
+ "_name_or_path": "stabilityai/stable-diffusion-2-1",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
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": "float16",
23
  "transformers_version": "4.40.0",
24
  "vocab_size": 49408
text_encoder/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd
3
- size 246144152
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc1827c465450322616f06dea41596eac7d493f4e95904dcb51f0fc745c4e13f
3
+ size 680820392
tokenizer/special_tokens_map.json CHANGED
@@ -13,7 +13,7 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
- "pad_token": "<|endoftext|>",
17
  "unk_token": {
18
  "content": "<|endoftext|>",
19
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "pad_token": "!",
17
  "unk_token": {
18
  "content": "<|endoftext|>",
19
  "lstrip": false,
tokenizer/tokenizer_config.json CHANGED
@@ -1,6 +1,14 @@
1
  {
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
 
 
 
 
 
 
 
 
4
  "49406": {
5
  "content": "<|startoftext|>",
6
  "lstrip": false,
@@ -24,7 +32,7 @@
24
  "eos_token": "<|endoftext|>",
25
  "errors": "replace",
26
  "model_max_length": 77,
27
- "pad_token": "<|endoftext|>",
28
  "tokenizer_class": "CLIPTokenizer",
29
  "unk_token": "<|endoftext|>"
30
  }
 
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,
 
32
  "eos_token": "<|endoftext|>",
33
  "errors": "replace",
34
  "model_max_length": 77,
35
+ "pad_token": "!",
36
  "tokenizer_class": "CLIPTokenizer",
37
  "unk_token": "<|endoftext|>"
38
  }
unet/config.json CHANGED
@@ -1,12 +1,17 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.28.0.dev0",
4
- "_name_or_path": "runwayml/stable-diffusion-v1-5",
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": 8,
 
 
 
 
 
10
  "attention_type": "default",
11
  "block_out_channels": [
12
  320,
@@ -19,7 +24,7 @@
19
  "class_embeddings_concat": false,
20
  "conv_in_kernel": 3,
21
  "conv_out_kernel": 3,
22
- "cross_attention_dim": 768,
23
  "cross_attention_norm": null,
24
  "down_block_types": [
25
  "CrossAttnDownBlock2D",
@@ -50,7 +55,7 @@
50
  "resnet_skip_time_act": false,
51
  "resnet_time_scale_shift": "default",
52
  "reverse_transformer_layers_per_block": null,
53
- "sample_size": 64,
54
  "time_cond_proj_dim": null,
55
  "time_embedding_act_fn": null,
56
  "time_embedding_dim": null,
@@ -63,6 +68,6 @@
63
  "CrossAttnUpBlock2D",
64
  "CrossAttnUpBlock2D"
65
  ],
66
- "upcast_attention": false,
67
- "use_linear_projection": false
68
  }
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.28.0.dev0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2-1",
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,
 
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
  "down_block_types": [
30
  "CrossAttnDownBlock2D",
 
55
  "resnet_skip_time_act": false,
56
  "resnet_time_scale_shift": "default",
57
  "reverse_transformer_layers_per_block": null,
58
+ "sample_size": 96,
59
  "time_cond_proj_dim": null,
60
  "time_embedding_act_fn": null,
61
  "time_embedding_dim": null,
 
68
  "CrossAttnUpBlock2D",
69
  "CrossAttnUpBlock2D"
70
  ],
71
+ "upcast_attention": true,
72
+ "use_linear_projection": true
73
  }
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad86ff4163d5e684d0fbb27917cab7a6bdde4629bf66b6fa35da0d917bc663ce
3
- size 3438167536
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2977a69e5c59eb9155ae7976dedd25cb05e382e0fea3f4fe75fb7b50e699205b
3
+ size 3463726504
vae/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.28.0.dev0",
4
- "_name_or_path": "runwayml/stable-diffusion-v1-5",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
@@ -23,7 +23,7 @@
23
  "layers_per_block": 2,
24
  "norm_num_groups": 32,
25
  "out_channels": 3,
26
- "sample_size": 512,
27
  "scaling_factor": 0.18215,
28
  "up_block_types": [
29
  "UpDecoderBlock2D",
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.28.0.dev0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2-1",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
 
23
  "layers_per_block": 2,
24
  "norm_num_groups": 32,
25
  "out_channels": 3,
26
+ "sample_size": 768,
27
  "scaling_factor": 0.18215,
28
  "up_block_types": [
29
  "UpDecoderBlock2D",
vae/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c
3
  size 167335342
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9a
3
  size 167335342