bghira commited on
Commit
f138b0f
·
verified ·
1 Parent(s): eb76e7c

Upload folder using huggingface_hub

Browse files
NoobAI-XL-Vpred-v1.0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea349eeae87ca8d25ba902c93810f7ca83e5c82f920edf12f273af004ae02819
3
+ size 7105350110
README.md ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: fair-ai-public-license-1.0-sd
4
+ license_link: https://freedevproject.org/faipl-1.0-sd/
5
+ language:
6
+ - en
7
+ base_model:
8
+ - Laxhar/noobai-XL-Vpred-0.75
9
+ pipeline_tag: text-to-image
10
+ tags:
11
+ - safetensors
12
+ - diffusers
13
+ - stable-diffusion
14
+ - stable-diffusion-xl
15
+ - art
16
+ - not-for-all-audiences
17
+ library_name: diffusers
18
+ ---
19
+
20
+ <h1 align="center"><strong style="font-size: 48px;">NoobAI XL V-Pred 1.0</strong></h1>
21
+
22
+ # Model Introduction
23
+
24
+ This image generation model, based on Laxhar/noobai-XL_v1.0, leverages full Danbooru and e621 datasets with native tags and natural language captioning.
25
+
26
+ Implemented as a v-prediction model (distinct from eps-prediction), it requires specific parameter configurations - detailed in following sections.
27
+
28
+ Special thanks to my teammate euge for the coding work, and we're grateful for the technical support from many helpful community members.
29
+
30
+ # ⚠️ IMPORTANT NOTICE ⚠️
31
+
32
+ ## **THIS MODEL WORKS DIFFERENT FROM EPS MODELS!**
33
+
34
+ ## **PLEASE READ THE GUIDE CAREFULLY!**
35
+
36
+ ## Model Details
37
+
38
+ - **Developed by**: [Laxhar Lab](https://huggingface.co/Laxhar)
39
+ - **Model Type**: Diffusion-based text-to-image generative model
40
+ - **Fine-tuned from**: Laxhar/noobai-XL_v1.0
41
+ - **Sponsored by from**: [Lanyun Cloud](https://cloud.lanyun.net)
42
+
43
+ ---
44
+
45
+ # How to Use the Model.
46
+
47
+ ## Method I: [reForge](https://github.com/Panchovix/stable-diffusion-webui-reForge/tree/dev_upstream)
48
+
49
+ 1. (If you haven't installed reForge) Install reForge by following the instructions in the repository;
50
+
51
+ 2. Launch WebUI and use the model as usual!
52
+
53
+ ## Method II: [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
54
+
55
+ SAMLPLE with NODES
56
+
57
+ [comfy_ui_workflow_sample](/Laxhar/noobai-XL-Vpred-0.5/blob/main/comfy_ui_workflow_sample.png)
58
+
59
+
60
+ ## Method III: [WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
61
+
62
+ Note that dev branch is not stable and **may contain bugs**.
63
+
64
+ 1. (If you haven't installed WebUI) Install WebUI by following the instructions in the repository. For simp
65
+ 2. Switch to `dev` branch:
66
+
67
+ ```bash
68
+ git switch dev
69
+ ```
70
+
71
+ 3. Pull latest updates:
72
+
73
+ ```bash
74
+ git pull
75
+ ```
76
+
77
+ 4. Launch WebUI and use the model as usual!
78
+
79
+ ## Method IV: [Diffusers](https://huggingface.co/docs/diffusers/en/index)
80
+
81
+ ```python
82
+ import torch
83
+ from diffusers import StableDiffusionXLPipeline
84
+ from diffusers import EulerDiscreteScheduler
85
+
86
+ ckpt_path = "/path/to/model.safetensors"
87
+ pipe = StableDiffusionXLPipeline.from_single_file(
88
+ ckpt_path,
89
+ use_safetensors=True,
90
+ torch_dtype=torch.float16,
91
+ )
92
+ scheduler_args = {"prediction_type": "v_prediction", "rescale_betas_zero_snr": True}
93
+ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, **scheduler_args)
94
+ pipe.enable_xformers_memory_efficient_attention()
95
+ pipe = pipe.to("cuda")
96
+
97
+ prompt = """masterpiece, best quality,artist:john_kafka,artist:nixeu,artist:quasarcake, chromatic aberration, film grain, horror \(theme\), limited palette, x-shaped pupils, high contrast, color contrast, cold colors, arlecchino \(genshin impact\), black theme, gritty, graphite \(medium\)"""
98
+ negative_prompt = "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro"
99
+
100
+ image = pipe(
101
+ prompt=prompt,
102
+ negative_prompt=negative_prompt,
103
+ width=832,
104
+ height=1216,
105
+ num_inference_steps=28,
106
+ guidance_scale=5,
107
+ generator=torch.Generator().manual_seed(42),
108
+ ).images[0]
109
+
110
+ image.save("output.png")
111
+ ```
112
+
113
+
114
+ **Note**: Please make sure Git is installed and environment is properly configured on your machine.
115
+
116
+ ---
117
+
118
+ # Recommended Settings
119
+
120
+ ## Parameters
121
+
122
+ - CFG: 4 ~ 5
123
+ - Steps: 28 ~ 35
124
+ - Sampling Method: **Euler** (⚠️ Other samplers will not work properly)
125
+ - Resolution: Total area around 1024x1024. Best to choose from: 768x1344, **832x1216**, 896x1152, 1024x1024, 1152x896, 1216x832, 1344x768
126
+
127
+ ## Prompts
128
+
129
+ - Prompt Prefix:
130
+
131
+ ```
132
+ masterpiece, best quality, newest, absurdres, highres, safe,
133
+ ```
134
+
135
+ - Negative Prompt:
136
+
137
+ ```
138
+ nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro
139
+ ```
140
+
141
+ # Usage Guidelines
142
+
143
+ ## Caption
144
+
145
+ ```
146
+ <1girl/1boy/1other/...>, <character>, <series>, <artists>, <special tags>, <general tags>, <other tags>
147
+ ```
148
+
149
+ ## Quality Tags
150
+
151
+ For quality tags, we evaluated image popularity through the following process:
152
+
153
+ - Data normalization based on various sources and ratings.
154
+ - Application of time-based decay coefficients according to date recency.
155
+ - Ranking of images within the entire dataset based on this processing.
156
+
157
+ Our ultimate goal is to ensure that quality tags effectively track user preferences in recent years.
158
+
159
+ | Percentile Range | Quality Tags |
160
+ | :--------------- | :------------- |
161
+ | > 95th | masterpiece |
162
+ | > 85th, <= 95th | best quality |
163
+ | > 60th, <= 85th | good quality |
164
+ | > 30th, <= 60th | normal quality |
165
+ | <= 30th | worst quality |
166
+
167
+ ## Aesthetic Tags
168
+
169
+ | Tag | Description |
170
+ | :-------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
171
+ | very awa | Top 5% of images in terms of aesthetic score by [waifu-scorer](https://huggingface.co/Eugeoter/waifu-scorer-v4-beta) |
172
+ | worst aesthetic | All the bottom 5% of images in terms of aesthetic score by [waifu-scorer](https://huggingface.co/Eugeoter/waifu-scorer-v4-beta) and [aesthetic-shadow-v2](https://huggingface.co/shadowlilac/aesthetic-shadow-v2) |
173
+ | ... | ... |
174
+
175
+ ## Date Tags
176
+
177
+ There are two types of date tags: **year tags** and **period tags**. For year tags, use `year xxxx` format, i.e., `year 2021`. For period tags, please refer to the following table:
178
+
179
+ | Year Range | Period tag |
180
+ | :--------- | :--------- |
181
+ | 2005-2010 | old |
182
+ | 2011-2014 | early |
183
+ | 2014-2017 | mid |
184
+ | 2018-2020 | recent |
185
+ | 2021-2024 | newest |
186
+
187
+ ## Dataset
188
+
189
+ - The latest Danbooru images up to the training date (approximately before 2024-10-23)
190
+ - E621 images [e621-2024-webp-4Mpixel](https://huggingface.co/datasets/NebulaeWis/e621-2024-webp-4Mpixel) dataset on Hugging Face
191
+
192
+ **Communication**
193
+
194
+ - **QQ Groups:**
195
+
196
+ - 875042008
197
+ - 914818692
198
+ - 635772191
199
+
200
+ - **Discord:** [Laxhar Dream Lab SDXL NOOB](https://discord.com/invite/DKnFjKEEvH)
201
+
202
+ **How to train a LoRA on v-pred SDXL model**
203
+
204
+ A tutorial is intended for LoRA trainers based on sd-scripts.
205
+
206
+ article link: https://civitai.com/articles/8723
207
+
208
+ **Utility Tool**
209
+
210
+ Laxhar Lab is training a dedicated ControlNet model for NoobXL, and the models are being released progressively. So far, the normal, depth, and canny have been released.
211
+
212
+ Model link: https://civitai.com/models/929685
213
+
214
+ # Model License
215
+
216
+ This model's license inherits from https://huggingface.co/OnomaAIResearch/Illustrious-xl-early-release-v0 fair-ai-public-license-1.0-sd and adds the following terms. Any use of this model and its variants is bound by this license.
217
+
218
+ ## I. Usage Restrictions
219
+
220
+ - Prohibited use for harmful, malicious, or illegal activities, including but not limited to harassment, threats, and spreading misinformation.
221
+ - Prohibited generation of unethical or offensive content.
222
+ - Prohibited violation of laws and regulations in the user's jurisdiction.
223
+
224
+ ## II. Commercial Prohibition
225
+
226
+ We prohibit any form of commercialization, including but not limited to monetization or commercial use of the model, derivative models, or model-generated products.
227
+
228
+ ## III. Open Source Community
229
+
230
+ Hey everyone! Don’t keep the cool stuff to yourself! 🚀
231
+
232
+ If you find new tricks, wild art combos, magic prompts, or train fun LoRAs, share them openly!
233
+
234
+ Post in DC/TG/X/group chats—let’s all grow together.
235
+
236
+ No more secret models/prompts like the old days.
237
+
238
+ Open sharing = more fun for all! 💡✨
239
+
240
+ PS: We're not trying to lock things down! Back in the 1.5/n3 days, tons of secret models/prompts popped up (ugh, messy vibes).
241
+
242
+ Let’s break that cycle! Sharing = faster progress, wilder ideas, and way more hype.
243
+
244
+ No gatekeeping—post your 'secret sauce' in public spaces. Everyone wins!
245
+
246
+
247
+ To foster a thriving open-source community,users MUST comply with the following requirements:
248
+
249
+ - Open source derivative models, merged models, LoRAs, and products based on the above models.
250
+ - Share work details such as synthesis formulas, prompts, and workflows.
251
+ - Follow the fair-ai-public-license to ensure derivative works remain open source.
252
+
253
+ ## IV. Disclaimer
254
+
255
+ Generated models may produce unexpected or harmful outputs. Users must assume all risks and potential consequences of usage.
256
+
257
+ # Participants and Contributors
258
+
259
+ ## Participants
260
+
261
+ - **L_A_X:** [Civitai](https://civitai.com/user/L_A_X) | [Liblib.art](https://www.liblib.art/userpage/9e1b16538b9657f2a737e9c2c6ebfa69) | [Huggingface](https://huggingface.co/LAXMAYDAY)
262
+ - **li_li:** [Civitai](https://civitai.com/user/li_li) | [Huggingface](https://huggingface.co/heziiiii)
263
+ - **nebulae:** [Civitai](https://civitai.com/user/kitarz) | [Huggingface](https://huggingface.co/NebulaeWis)
264
+ - **Chenkin:** [Civitai](https://civitai.com/user/Chenkin) | [Huggingface](https://huggingface.co/windsingai)
265
+ - **Euge:** [Civitai](https://civitai.com/user/Euge_) | [Huggingface](https://huggingface.co/Eugeoter) | [Github](https://github.com/Eugeoter)
266
+
267
+ ## Contributors
268
+
269
+ - **Narugo1992**: Thanks to [narugo1992](https://github.com/narugo1992) and the [deepghs](https://huggingface.co/deepghs) team for open-sourcing various training sets, image processing tools, and models.
270
+
271
+ - **Mikubill**: Thanks to [Mikubill](https://github.com/Mikubill) for the [Naifu](https://github.com/Mikubill/naifu) trainer.
272
+
273
+ - **Onommai**: Thanks to [OnommAI](https://onomaai.com/) for open-sourcing a powerful base model.
274
+
275
+ - **V-Prediction**: Thanks to the following individuals for their detailed instructions and experiments.
276
+
277
+ - adsfssdf
278
+ - [bluvoll](https://civitai.com/user/bluvoll)
279
+ - [bvhari](https://github.com/bvhari)
280
+ - [catboxanon](https://github.com/catboxanon)
281
+ - [parsee-mizuhashi](https://huggingface.co/parsee-mizuhashi)
282
+ - [very-aesthetic](https://github.com/very-aesthetic)
283
+ - [momoura](https://civitai.com/user/momoura)
284
+ - madmanfourohfour
285
+ - David
286
+
287
+ - **Community**: [aria1th261](https://civitai.com/user/aria1th261), [neggles](https://github.com/neggles/neurosis), [sdtana](https://huggingface.co/sdtana), [chewing](https://huggingface.co/chewing), [irldoggo](https://github.com/irldoggo), [reoe](https://huggingface.co/reoe), [kblueleaf](https://civitai.com/user/kblueleaf), [Yidhar](https://github.com/Yidhar), ageless, 白玲可, Creeper, KaerMorh, 吟游诗人, SeASnAkE, [zwh20081](https://civitai.com/user/zwh20081), Wenaka⁧~喵, 稀里哗啦, 幸运二副, 昨日の約, 445, [EBIX](https://civitai.com/user/EBIX), [Sopp](https://huggingface.co/goyishsoyish), [Y_X](https://civitai.com/user/Y_X), [Minthybasis](https://civitai.com/user/Minthybasis), [Rakosz](https://civitai.com/user/Rakosz)
model_index.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionXLPipeline",
3
+ "_diffusers_version": "0.31.0",
4
+ "feature_extractor": [
5
+ null,
6
+ null
7
+ ],
8
+ "force_zeros_for_empty_prompt": true,
9
+ "image_encoder": [
10
+ null,
11
+ null
12
+ ],
13
+ "scheduler": [
14
+ "diffusers",
15
+ "EulerDiscreteScheduler"
16
+ ],
17
+ "text_encoder": [
18
+ "transformers",
19
+ "CLIPTextModel"
20
+ ],
21
+ "text_encoder_2": [
22
+ "transformers",
23
+ "CLIPTextModelWithProjection"
24
+ ],
25
+ "tokenizer": [
26
+ "transformers",
27
+ "CLIPTokenizer"
28
+ ],
29
+ "tokenizer_2": [
30
+ "transformers",
31
+ "CLIPTokenizer"
32
+ ],
33
+ "unet": [
34
+ "diffusers",
35
+ "UNet2DConditionModel"
36
+ ],
37
+ "vae": [
38
+ "diffusers",
39
+ "AutoencoderKL"
40
+ ]
41
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "EulerDiscreteScheduler",
3
+ "_diffusers_version": "0.31.0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "final_sigmas_type": "zero",
9
+ "interpolation_type": "linear",
10
+ "num_train_timesteps": 1000,
11
+ "prediction_type": "epsilon",
12
+ "rescale_betas_zero_snr": false,
13
+ "sample_max_value": 1.0,
14
+ "set_alpha_to_one": false,
15
+ "sigma_max": null,
16
+ "sigma_min": null,
17
+ "skip_prk_steps": true,
18
+ "steps_offset": 1,
19
+ "timestep_spacing": "leading",
20
+ "timestep_type": "discrete",
21
+ "trained_betas": null,
22
+ "use_beta_sigmas": false,
23
+ "use_exponential_sigmas": false,
24
+ "use_karras_sigmas": false
25
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CLIPTextModel"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 0,
7
+ "dropout": 0.0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "quick_gelu",
10
+ "hidden_size": 768,
11
+ "initializer_factor": 1.0,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 77,
16
+ "model_type": "clip_text_model",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "projection_dim": 768,
21
+ "torch_dtype": "float16",
22
+ "transformers_version": "4.45.1",
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:0580de479d979c217e6bc07399e9311e8d681b3a7dc6548b6a41e2ee673bbe40
3
+ size 246144152
text_encoder_2/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.45.1",
23
+ "vocab_size": 49408
24
+ }
text_encoder_2/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d594c7736feb8ca106cc0cd85e4ca5c5bc56170c5942a0e30903754142ec6c4
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,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": "<|endoftext|>",
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,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": true,
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
 
tokenizer_2/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_2/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_2/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_2/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
unet/config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.31.0",
4
+ "act_fn": "silu",
5
+ "addition_embed_type": "text_time",
6
+ "addition_embed_type_num_heads": 64,
7
+ "addition_time_embed_dim": 256,
8
+ "attention_head_dim": [
9
+ 5,
10
+ 10,
11
+ 20
12
+ ],
13
+ "attention_type": "default",
14
+ "block_out_channels": [
15
+ 320,
16
+ 640,
17
+ 1280
18
+ ],
19
+ "center_input_sample": false,
20
+ "class_embed_type": null,
21
+ "class_embeddings_concat": false,
22
+ "conv_in_kernel": 3,
23
+ "conv_out_kernel": 3,
24
+ "cross_attention_dim": 2048,
25
+ "cross_attention_norm": null,
26
+ "down_block_types": [
27
+ "DownBlock2D",
28
+ "CrossAttnDownBlock2D",
29
+ "CrossAttnDownBlock2D"
30
+ ],
31
+ "downsample_padding": 1,
32
+ "dropout": 0.0,
33
+ "dual_cross_attention": false,
34
+ "encoder_hid_dim": null,
35
+ "encoder_hid_dim_type": null,
36
+ "flip_sin_to_cos": true,
37
+ "freq_shift": 0,
38
+ "in_channels": 4,
39
+ "layers_per_block": 2,
40
+ "mid_block_only_cross_attention": null,
41
+ "mid_block_scale_factor": 1,
42
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
43
+ "norm_eps": 1e-05,
44
+ "norm_num_groups": 32,
45
+ "num_attention_heads": null,
46
+ "num_class_embeds": null,
47
+ "only_cross_attention": false,
48
+ "out_channels": 4,
49
+ "projection_class_embeddings_input_dim": 2816,
50
+ "resnet_out_scale_factor": 1.0,
51
+ "resnet_skip_time_act": false,
52
+ "resnet_time_scale_shift": "default",
53
+ "reverse_transformer_layers_per_block": null,
54
+ "sample_size": 128,
55
+ "time_cond_proj_dim": null,
56
+ "time_embedding_act_fn": null,
57
+ "time_embedding_dim": null,
58
+ "time_embedding_type": "positional",
59
+ "timestep_post_act": null,
60
+ "transformer_layers_per_block": [
61
+ 1,
62
+ 2,
63
+ 10
64
+ ],
65
+ "up_block_types": [
66
+ "CrossAttnUpBlock2D",
67
+ "CrossAttnUpBlock2D",
68
+ "UpBlock2D"
69
+ ],
70
+ "upcast_attention": null,
71
+ "use_linear_projection": true
72
+ }
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4d0ff7282ad600456ba0d920221af844fda4c5d1f188b59239f0b8187ff190e
3
+ size 5135149760
vae/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.31.0",
4
+ "_name_or_path": "../sdxl-vae/",
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
+ "latents_mean": null,
22
+ "latents_std": null,
23
+ "layers_per_block": 2,
24
+ "mid_block_add_attention": true,
25
+ "norm_num_groups": 32,
26
+ "out_channels": 3,
27
+ "sample_size": 1024,
28
+ "scaling_factor": 0.13025,
29
+ "shift_factor": null,
30
+ "up_block_types": [
31
+ "UpDecoderBlock2D",
32
+ "UpDecoderBlock2D",
33
+ "UpDecoderBlock2D",
34
+ "UpDecoderBlock2D"
35
+ ],
36
+ "use_post_quant_conv": true,
37
+ "use_quant_conv": true
38
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d3aca1a278ed7262b9c5d13fa232c088b039a05abbce27c45b5d2c8cc60df1d
3
+ size 167335342