Disty0 commited on
Commit
a6e6387
1 Parent(s): 7858fd5

Upload 18 files

Browse files
LICENSE ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ STABILITY AI NON-COMMERCIAL RESEARCH COMMUNITY LICENSE AGREEMENT
2
+ Dated: November 28, 2023
3
+
4
+ By using or distributing any portion or element of the Models, Software, Software Products or Derivative Works, you agree to be bound by this Agreement.
5
+
6
+ "Agreement" means this Stable Non-Commercial Research Community License Agreement.
7
+
8
+ “AUP” means the Stability AI Acceptable Use Policy available at https://stability.ai/use-policy, as may be updated from time to time.
9
+
10
+ "Derivative Work(s)” means (a) any derivative work of the Software Products as recognized by U.S. copyright laws and (b) any modifications to a Model, and any other model created which is based on or derived from the Model or the Model’s output. For clarity, Derivative Works do not include the output of any Model.
11
+
12
+ “Documentation” means any specifications, manuals, documentation, and other written information provided by Stability AI related to the Software.
13
+
14
+ "Licensee" or "you" means you, or your employer or any other person or entity (if you are entering into this Agreement on such person or entity's behalf), of the age required under applicable laws, rules or regulations to provide legal consent and that has legal authority to bind your employer or such other person or entity if you are entering in this Agreement on their behalf.
15
+
16
+ “Model(s)" means, collectively, Stability AI’s proprietary models and algorithms, including machine-learning models, trained model weights and other elements of the foregoing, made available under this Agreement.
17
+
18
+ “Non-Commercial Uses” means exercising any of the rights granted herein for the purpose of research or non-commercial purposes. Non-Commercial Uses does not include any production use of the Software Products or any Derivative Works.
19
+
20
+ "Stability AI" or "we" means Stability AI Ltd. and its affiliates.
21
+
22
+
23
+ "Software" means Stability AI’s proprietary software made available under this Agreement.
24
+
25
+ “Software Products” means the Models, Software and Documentation, individually or in any combination.
26
+
27
+
28
+
29
+ 1. License Rights and Redistribution.
30
+ a. Subject to your compliance with this Agreement, the AUP (which is hereby incorporated herein by reference), and the Documentation, Stability AI grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty free and limited license under Stability AI’s intellectual property or other rights owned or controlled by Stability AI embodied in the Software Products to use, reproduce, distribute, and create Derivative Works of, the Software Products, in each case for Non-Commercial Uses only.
31
+ b. You may not use the Software Products or Derivative Works to enable third parties to use the Software Products or Derivative Works as part of your hosted service or via your APIs, whether you are adding substantial additional functionality thereto or not. Merely distributing the Software Products or Derivative Works for download online without offering any related service (ex. by distributing the Models on HuggingFace) is not a violation of this subsection. If you wish to use the Software Products or any Derivative Works for commercial or production use or you wish to make the Software Products or any Derivative Works available to third parties via your hosted service or your APIs, contact Stability AI at https://stability.ai/contact.
32
+ c. If you distribute or make the Software Products, or any Derivative Works thereof, available to a third party, the Software Products, Derivative Works, or any portion thereof, respectively, will remain subject to this Agreement and you must (i) provide a copy of this Agreement to such third party, and (ii) retain the following attribution notice within a "Notice" text file distributed as a part of such copies: "This Stability AI Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.” If you create a Derivative Work of a Software Product, you may add your own attribution notices to the Notice file included with the Software Product, provided that you clearly indicate which attributions apply to the Software Product and you must state in the NOTICE file that you changed the Software Product and how it was modified.
33
+ 2. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE SOFTWARE PRODUCTS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE SOFTWARE PRODUCTS, DERIVATIVE WORKS OR ANY OUTPUT OR RESULTS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE SOFTWARE PRODUCTS, DERIVATIVE WORKS AND ANY OUTPUT AND RESULTS.
34
+ 3. Limitation of Liability. IN NO EVENT WILL STABILITY AI OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF STABILITY AI OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
35
+ 4. Intellectual Property.
36
+ a. No trademark licenses are granted under this Agreement, and in connection with the Software Products or Derivative Works, neither Stability AI nor Licensee may use any name or mark owned by or associated with the other or any of its affiliates, except as required for reasonable and customary use in describing and redistributing the Software Products or Derivative Works.
37
+ b. Subject to Stability AI’s ownership of the Software Products and Derivative Works made by or for Stability AI, with respect to any Derivative Works that are made by you, as between you and Stability AI, you are and will be the owner of such Derivative Works
38
+ c. If you institute litigation or other proceedings against Stability AI (including a cross-claim or counterclaim in a lawsuit) alleging that the Software Products, Derivative Works or associated outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless Stability AI from and against any claim by any third party arising out of or related to your use or distribution of the Software Products or Derivative Works in violation of this Agreement.
39
+ 5. Term and Termination. The term of this Agreement will commence upon your acceptance of this Agreement or access to the Software Products and will continue in full force and effect until terminated in accordance with the terms and conditions herein. Stability AI may terminate this Agreement if you are in breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete and cease use of any Software Products or Derivative Works. Sections 2-4 shall survive the termination of this Agreement.
40
+
41
+ 6. Governing Law. This Agreement will be governed by and construed in accordance with the laws of the United States and the State of California without regard to choice of law
42
+ principles.
README.md ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-to-image
3
+ license: other
4
+ license_name: stable-cascade-nc-community
5
+ license_link: LICENSE
6
+ ---
7
+
8
+ # SoteDiffusion Cascade
9
+
10
+ Anime finetune of Stable Cascade.
11
+ Currently is in very early state in training.
12
+ No commercial use thanks to StabilityAI.
13
+
14
+ <style>
15
+ .image {
16
+ float: left;
17
+ margin-left: 10px;
18
+ }
19
+ </style>
20
+
21
+ <table>
22
+ <img class="image" src="placeholder" width="320">
23
+ <img class="image" src="placeholder" width="320">
24
+ </table>
25
+
26
+ ## Code Example
27
+
28
+ ```shell
29
+ pip install diffusers
30
+ ```
31
+
32
+ ```python
33
+ import torch
34
+ from diffusers import StableCascadeDecoderPipeline, StableCascadePriorPipeline
35
+
36
+ prompt = "newest, 1girl, solo, cat ears, looking at viewer, blush, light smile,"
37
+ negative_prompt = "very displeasing, worst quality, monochrome, sketch, fat, child,"
38
+
39
+ prior = StableCascadePriorPipeline.from_pretrained("Disty0/sote-diffusion-cascade_alpha0", torch_dtype=torch.float16)
40
+ decoder = StableCascadeDecoderPipeline.from_pretrained("Disty0/sote-diffusion-cascade-decoder_alpha0", torch_dtype=torch.float16)
41
+
42
+ prior.enable_model_cpu_offload()
43
+ prior_output = prior(
44
+ prompt=prompt,
45
+ height=1024,
46
+ width=1024,
47
+ negative_prompt=negative_prompt,
48
+ guidance_scale=7.0,
49
+ num_images_per_prompt=1,
50
+ num_inference_steps=40
51
+ )
52
+
53
+ decoder.enable_model_cpu_offload()
54
+ decoder_output = decoder(
55
+ image_embeddings=prior_output.image_embeddings,
56
+ prompt=prompt,
57
+ negative_prompt=negative_prompt,
58
+ guidance_scale=1.5
59
+ output_type="pil",
60
+ num_inference_steps=10
61
+ ).images[0]
62
+ decoder_output.save("cascade.png")
63
+ ```
64
+
65
+
66
+ ## Training Status:
67
+
68
+ **Alpha0 Release**: This release resets the training and uses the new taggers.
69
+
70
+
71
+ **GPU used for training**: 1x AMD RX 7900 XTX 24GB
72
+
73
+ | dataset name | training done | remaining |
74
+ |---|---|---|
75
+ | **newest** | 000 | 230 |
76
+ | **late** | 000 | 206 |
77
+ | **mid** | 000 | 201 |
78
+ | **early** | 000 | 055 |
79
+ | **oldest** | 000 | 016 |
80
+ | **pixiv** | 000 | 074 |
81
+ | **visual novel cg** | 002 | 070 |
82
+ | **anime wallpaper** | 002 | 013 |
83
+ | **Total** | 8 | 865 |
84
+
85
+ **Note**: chunks starts from 0 and there are 8000 images per chunk
86
+
87
+
88
+ ## Dataset:
89
+
90
+ **GPU used for captioning**: 1x Intel ARC A770 16GB
91
+ **Model used for captioning**: SmilingWolf/wd-swinv2-tagger-v3
92
+ **Command:**
93
+ ```
94
+ python /mnt/DataSSD/AI/Apps/kohya_ss/sd-scripts/finetune/tag_images_by_wd14_tagger.py --model_dir "/mnt/DataSSD/AI/models/wd14_tagger_model" --repo_id "SmilingWolf/wd-swinv2-tagger-v3" --recursive --remove_underscore --use_rating_tags --character_tags_first --character_tag_expand --append_tags --onnx --caption_separator ", " --general_threshold 0.35 --character_threshold 0.50 --batch_size 4 --caption_extension ".txt" ./
95
+ ```
96
+
97
+
98
+ | dataset name | total images | total chunk |
99
+ |---|---|---|
100
+ | **newest** | 1.843.053 | 221 |
101
+ | **late** | 1.652.420 | 207 |
102
+ | **mid** | 1.609.608 | 202 |
103
+ | **early** | 442.368 | 056 |
104
+ | **oldest** | 128.311 | 017 |
105
+ | **pixiv** | 594.046 | 075 |
106
+ | **visual novel cg** | 560.903 | 071 |
107
+ | **anime wallpaper** | 106.882 | 014 |
108
+ | **Total** | 6.937.591 | 873 |
109
+
110
+ **Note**: Smallest size is 1280x600 | 768.000 pixels
111
+
112
+
113
+ ## Tags:
114
+
115
+ ```
116
+ aesthetic tags, quality tags, date tags, custom tags, character tags, rest of the tags
117
+ ```
118
+
119
+ ### Date:
120
+ | tag | date |
121
+ |---|---|
122
+ | **newest** | 2022 to 2024 |
123
+ | **late** | 2019 to 2021 |
124
+ | **mid** | 2015 to 2018 |
125
+ | **early** | 2011 to 2014 |
126
+ | **oldest** | 2005 to 2010 |
127
+
128
+ ### Aesthetic Tags:
129
+
130
+ **Model used**: shadowlilac/aesthetic-shadow-v2
131
+
132
+ | score greater than | tag |
133
+ |---|---|
134
+ | **0.90** | extremely aesthetic |
135
+ | **0.80** | very aesthetic |
136
+ | **0.70** | aesthetic |
137
+ | **0.50** | slightly aesthetic |
138
+ | **0.40** | not displeasing |
139
+ | **0.30** | not aesthetic |
140
+ | **0.20** | slightly displeasing |
141
+ | **0.10** | displeasing |
142
+ | **rest of them** | very displeasing |
143
+
144
+ ### Quality Tags:
145
+
146
+ **Model used**: https://huggingface.co/hakurei/waifu-diffusion-v1-4/blob/main/models/aes-B32-v0.pth
147
+
148
+
149
+ | score greater than | tag |
150
+ |---|---|
151
+ | **0.980** | best quality |
152
+ | **0.900** | high quality |
153
+ | **0.750** | great quality |
154
+ | **0.500** | medium quality |
155
+ | **0.250** | normal quality |
156
+ | **0.125** | bad quality |
157
+ | **0.025** | low quality |
158
+ | **rest of them** | worst quality |
159
+
160
+ ## Custom Tags:
161
+
162
+ | dataset name | custom tag |
163
+ |---|---|
164
+ | **booru** | date, |
165
+ | **pixiv** | art by Display_Name, |
166
+ | **visual novel cg** | Full_VN_Name (short_3_letter_name), visual novel cg, |
167
+ | **anime wallpaper** | date, anime wallpaper, |
168
+
169
+ ## Training Params:
170
+
171
+ **Software used**: Kohya SD-Scripts with Stable Cascade branch
172
+ **Base model**: KBlueLeaf/Stable-Cascade-FP16-fixed
173
+
174
+ ### Command:
175
+ ```
176
+ accelerate launch --mixed_precision fp16 --num_cpu_threads_per_process 1 stable_cascade_train_stage_c.py \
177
+ --mixed_precision fp16 \
178
+ --save_precision fp16 \
179
+ --full_fp16 \
180
+ --sdpa \
181
+ --gradient_checkpointing \
182
+ --train_text_encoder \
183
+ --resolution "1024,1024" \
184
+ --train_batch_size 2 \
185
+ --adaptive_loss_weight \
186
+ --learning_rate 4e-6 \
187
+ --lr_scheduler constant_with_warmup \
188
+ --lr_warmup_steps 100 \
189
+ --optimizer_type adafactor \
190
+ --optimizer_args "scale_parameter=False" "relative_step=False" "warmup_init=False" \
191
+ --max_grad_norm 0 \
192
+ --token_warmup_min 1 \
193
+ --token_warmup_step 0 \
194
+ --shuffle_caption \
195
+ --caption_dropout_rate 0 \
196
+ --caption_tag_dropout_rate 0 \
197
+ --caption_dropout_every_n_epochs 0 \
198
+ --dataset_repeats 1 \
199
+ --save_state \
200
+ --save_every_n_steps 2048 \
201
+ --sample_every_n_steps 512 \
202
+ --max_token_length 225 \
203
+ --max_train_epochs 1 \
204
+ --caption_extension ".txt" \
205
+ --max_data_loader_n_workers 2 \
206
+ --persistent_data_loader_workers \
207
+ --enable_bucket \
208
+ --min_bucket_reso 256 \
209
+ --max_bucket_reso 4096 \
210
+ --bucket_reso_steps 64 \
211
+ --bucket_no_upscale \
212
+ --log_with tensorboard \
213
+ --output_name sotediffusion-sc_3b \
214
+ --train_data_dir /mnt/DataSSD/AI/anime_image_dataset/combined/combined-0000 \
215
+ --in_json /mnt/DataSSD/AI/anime_image_dataset/combined/combined-0000.json \
216
+ --output_dir /mnt/DataSSD/AI/SoteDiffusion/StableCascade/sotediffusion-sc_3b-0 \
217
+ --logging_dir /mnt/DataSSD/AI/SoteDiffusion/StableCascade/sotediffusion-sc_3b-0/logs \
218
+ --resume /mnt/DataSSD/AI/SoteDiffusion/StableCascade/sotediffusion-sc_3b-step00020480-state \
219
+ --stage_c_checkpoint_path /mnt/DataSSD/AI/SoteDiffusion/StableCascade/sotediffusion-sc_3b-step00020480.safetensors \
220
+ --text_model_checkpoint_path /mnt/DataSSD/AI/SoteDiffusion/StableCascade/sotediffusion-sc_3b-step00020480_text_model.safetensors \
221
+ --effnet_checkpoint_path /mnt/DataSSD/AI/models/sd-cascade/effnet_encoder.safetensors \
222
+ --previewer_checkpoint_path /mnt/DataSSD/AI/models/sd-cascade/previewer.safetensors \
223
+ --sample_prompts /mnt/DataSSD/AI/SoteDiffusion/StableCascade/config/sotediffusion-prompt.txt
224
+ ```
225
+
226
+
227
+ ## Limitations and Bias
228
+
229
+ ### Bias
230
+
231
+ - This model is intended for anime illustrations.
232
+ Realistic capabilites are not tested at all.
233
+ - Still underbaked.
234
+
235
+ ### Limitations
236
+ - Can fall back to realistic.
237
+ Use "anime illustration" tag to point it into the right direction.
238
+ - Far shot eyes are still bad thanks to the heavy latent compression.
feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "image_mean": [
12
+ 0.48145466,
13
+ 0.4578275,
14
+ 0.40821073
15
+ ],
16
+ "image_processor_type": "CLIPImageProcessor",
17
+ "image_std": [
18
+ 0.26862954,
19
+ 0.26130258,
20
+ 0.27577711
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 224
26
+ }
27
+ }
image_encoder/config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/disty/.cache/huggingface/hub/models--stabilityai--stable-cascade-prior/snapshots/7ca32c21c3b4d4e35bbb94fcfedfb4fa2259bd91/image_encoder",
3
+ "architectures": [
4
+ "CLIPVisionModelWithProjection"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "dropout": 0.0,
8
+ "hidden_act": "quick_gelu",
9
+ "hidden_size": 1024,
10
+ "image_size": 224,
11
+ "initializer_factor": 1.0,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 4096,
14
+ "layer_norm_eps": 1e-05,
15
+ "model_type": "clip_vision_model",
16
+ "num_attention_heads": 16,
17
+ "num_channels": 3,
18
+ "num_hidden_layers": 24,
19
+ "patch_size": 14,
20
+ "projection_dim": 768,
21
+ "torch_dtype": "float16",
22
+ "transformers_version": "4.36.2"
23
+ }
image_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dd0c1777bb75e2e9b7aa29b799b3ee8ebaaaa731e2c471a9ec589f12542cce7
3
+ size 607980096
model_index.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableCascadePriorPipeline",
3
+ "_diffusers_version": "0.28.0.dev0",
4
+ "_name_or_path": "Disty0/sote-diffusion-cascade_alpha0",
5
+ "feature_extractor": [
6
+ "transformers",
7
+ "CLIPImageProcessor"
8
+ ],
9
+ "image_encoder": [
10
+ "transformers",
11
+ "CLIPVisionModelWithProjection"
12
+ ],
13
+ "prior": [
14
+ "diffusers",
15
+ "StableCascadeUNet"
16
+ ],
17
+ "resolution_multiple": 42.67,
18
+ "scheduler": [
19
+ "diffusers",
20
+ "DDPMWuerstchenScheduler"
21
+ ],
22
+ "text_encoder": [
23
+ "transformers",
24
+ "CLIPTextModelWithProjection"
25
+ ],
26
+ "tokenizer": [
27
+ "transformers",
28
+ "CLIPTokenizerFast"
29
+ ]
30
+ }
prior/config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableCascadeUNet",
3
+ "_diffusers_version": "0.28.0.dev0",
4
+ "block_out_channels": [
5
+ 2048,
6
+ 2048
7
+ ],
8
+ "block_types_per_layer": [
9
+ [
10
+ "SDCascadeResBlock",
11
+ "SDCascadeTimestepBlock",
12
+ "SDCascadeAttnBlock"
13
+ ],
14
+ [
15
+ "SDCascadeResBlock",
16
+ "SDCascadeTimestepBlock",
17
+ "SDCascadeAttnBlock"
18
+ ]
19
+ ],
20
+ "clip_image_in_channels": 768,
21
+ "clip_seq": 4,
22
+ "clip_text_in_channels": 1280,
23
+ "clip_text_pooled_in_channels": 1280,
24
+ "conditioning_dim": 2048,
25
+ "down_blocks_repeat_mappers": [
26
+ 1,
27
+ 1
28
+ ],
29
+ "down_num_layers_per_block": [
30
+ 8,
31
+ 24
32
+ ],
33
+ "dropout": [
34
+ 0.1,
35
+ 0.1
36
+ ],
37
+ "effnet_in_channels": null,
38
+ "in_channels": 16,
39
+ "kernel_size": 3,
40
+ "num_attention_heads": [
41
+ 32,
42
+ 32
43
+ ],
44
+ "out_channels": 16,
45
+ "patch_size": 1,
46
+ "pixel_mapper_in_channels": null,
47
+ "self_attn": true,
48
+ "switch_level": [
49
+ false
50
+ ],
51
+ "timestep_conditioning_type": [
52
+ "sca",
53
+ "crp"
54
+ ],
55
+ "timestep_ratio_embedding_dim": 64,
56
+ "up_blocks_repeat_mappers": [
57
+ 1,
58
+ 1
59
+ ],
60
+ "up_num_layers_per_block": [
61
+ 24,
62
+ 8
63
+ ]
64
+ }
prior/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7968c66cd7ba9937a04ae5a34f99421350ce63b9afe1b2d246a3514eb04503c
3
+ size 7178376264
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDPMWuerstchenScheduler",
3
+ "_diffusers_version": "0.28.0.dev0",
4
+ "s": 0.008,
5
+ "scaler": 1.0
6
+ }
sotediffusion-sc_3b-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d9119f0a6486c6fbe7816ff3f24490a851e952d6d572318a19cb3f97cf7b9de
3
+ size 7178349784
sotediffusion-sc_3b_text_model-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f46c789a6635088caca27238359546081d1aaf39e66175c17bb931b5a57137f5
3
+ size 1389382144
text_encoder/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CLIPTextModelWithProjection"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 0,
7
+ "dropout": 0.0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_size": 1280,
11
+ "initializer_factor": 1.0,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 5120,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 77,
16
+ "model_type": "clip_text_model",
17
+ "num_attention_heads": 20,
18
+ "num_hidden_layers": 32,
19
+ "pad_token_id": 1,
20
+ "projection_dim": 1280,
21
+ "torch_dtype": "float16",
22
+ "transformers_version": "4.36.2",
23
+ "vocab_size": 49408
24
+ }
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce73a6f7c77eb438a9e494250b3a9a6b1d4e8b1e716d2235dcf399c28b17cc62
3
+ size 1389382176
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,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|endoftext|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "49406": {
5
+ "content": "<|startoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "49407": {
13
+ "content": "<|endoftext|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ }
20
+ },
21
+ "bos_token": "<|startoftext|>",
22
+ "clean_up_tokenization_spaces": true,
23
+ "do_lower_case": true,
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
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff