studyOverflow commited on
Commit
70df87e
·
verified ·
1 Parent(s): e6ca264

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. data/QwenImage/.gitattributes +35 -0
  2. data/QwenImage/LICENSE +202 -0
  3. data/QwenImage/README.md +135 -0
  4. data/QwenImage/model_index.json +24 -0
  5. data/StableDiffusion/.gitattributes +32 -0
  6. data/StableDiffusion/README.md +324 -0
  7. data/StableDiffusion/feature_extractor/preprocessor_config.json +20 -0
  8. data/StableDiffusion/model_index.json +32 -0
  9. data/StableDiffusion/scheduler/scheduler_config.json +13 -0
  10. data/StableDiffusion/text_encoder/config.json +24 -0
  11. data/StableDiffusion/tokenizer/merges.txt +0 -0
  12. data/StableDiffusion/tokenizer/special_tokens_map.json +24 -0
  13. data/StableDiffusion/tokenizer/tokenizer_config.json +34 -0
  14. data/StableDiffusion/tokenizer/vocab.json +0 -0
  15. data/StableDiffusion/v1-variants-scores.jpg +0 -0
  16. data/StableDiffusion/vae/config.json +29 -0
  17. fastvideo/models/hunyuan/modules/__pycache__/__init__.cpython-310.pyc +0 -0
  18. fastvideo/models/hunyuan/modules/__pycache__/__init__.cpython-312.pyc +0 -0
  19. fastvideo/models/hunyuan/modules/__pycache__/attenion.cpython-310.pyc +0 -0
  20. fastvideo/models/hunyuan/modules/__pycache__/embed_layers.cpython-312.pyc +0 -0
  21. fastvideo/models/hunyuan/modules/__pycache__/models.cpython-310.pyc +0 -0
  22. fastvideo/models/hunyuan/modules/__pycache__/models.cpython-312.pyc +0 -0
  23. fastvideo/models/hunyuan/modules/__pycache__/norm_layers.cpython-312.pyc +0 -0
  24. fastvideo/models/hunyuan/modules/__pycache__/posemb_layers.cpython-310.pyc +0 -0
  25. fastvideo/models/hunyuan/modules/__pycache__/token_refiner.cpython-312.pyc +0 -0
  26. fastvideo/models/qwenimage/__pycache__/__init__.cpython-310.pyc +0 -0
  27. fastvideo/models/qwenimage/__pycache__/autoencoder_kl_qwenimage.cpython-310.pyc +0 -0
  28. fastvideo/models/qwenimage/__pycache__/pipeline_output.cpython-310.pyc +0 -0
  29. fastvideo/models/qwenimage/__pycache__/pipeline_qwenimage.cpython-310.pyc +0 -0
  30. fastvideo/models/qwenimage/__pycache__/transformer_qwenimage.cpython-310.pyc +0 -0
  31. fastvideo/models/stable_diffusion/__pycache__/ddim_with_logprob.cpython-310.pyc +0 -0
  32. fastvideo/models/stable_diffusion/__pycache__/pipeline_with_logprob.cpython-310.pyc +0 -0
  33. fastvideo/utils/__pycache__/checkpoint.cpython-310.pyc +0 -0
  34. fastvideo/utils/__pycache__/checkpoint.cpython-312.pyc +0 -0
  35. fastvideo/utils/__pycache__/communications.cpython-310.pyc +0 -0
  36. fastvideo/utils/__pycache__/communications.cpython-312.pyc +0 -0
  37. fastvideo/utils/__pycache__/communications_flux.cpython-312.pyc +0 -0
  38. fastvideo/utils/__pycache__/communications_flux_rfpt.cpython-312.pyc +0 -0
  39. fastvideo/utils/__pycache__/dataset_utils.cpython-310.pyc +0 -0
  40. fastvideo/utils/__pycache__/dataset_utils.cpython-312.pyc +0 -0
  41. fastvideo/utils/__pycache__/fsdp_util.cpython-310.pyc +0 -0
  42. fastvideo/utils/__pycache__/fsdp_util.cpython-312.pyc +0 -0
  43. fastvideo/utils/__pycache__/fsdp_util_qwenimage.cpython-310.pyc +0 -0
  44. fastvideo/utils/__pycache__/load.cpython-310.pyc +0 -0
  45. fastvideo/utils/__pycache__/load.cpython-312.pyc +0 -0
  46. fastvideo/utils/__pycache__/logging_.cpython-310.pyc +0 -0
  47. fastvideo/utils/__pycache__/logging_.cpython-312.pyc +0 -0
  48. fastvideo/utils/__pycache__/parallel_states.cpython-310.pyc +0 -0
  49. fastvideo/utils/__pycache__/parallel_states.cpython-312.pyc +0 -0
  50. fastvideo/utils/__pycache__/validation.cpython-312.pyc +0 -0
data/QwenImage/.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
data/QwenImage/LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024 Alibaba Cloud
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/QwenImage/README.md ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ library_name: diffusers
7
+ pipeline_tag: text-to-image
8
+ ---
9
+ <p align="center">
10
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_logo.png" width="400"/>
11
+ <p>
12
+ <p align="center">
13
+ 💜 <a href="https://chat.qwen.ai/"><b>Qwen Chat</b></a>&nbsp&nbsp | &nbsp&nbsp🤗 <a href="https://huggingface.co/Qwen/Qwen-Image">Hugging Face</a>&nbsp&nbsp | &nbsp&nbsp🤖 <a href="https://modelscope.cn/models/Qwen/Qwen-Image">ModelScope</a>&nbsp&nbsp | &nbsp&nbsp 📑 <a href="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/Qwen_Image.pdf">Tech Report</a> &nbsp&nbsp | &nbsp&nbsp 📑 <a href="https://qwenlm.github.io/blog/qwen-image/">Blog</a> &nbsp&nbsp
14
+ <br>
15
+ 🖥️ <a href="https://huggingface.co/spaces/Qwen/qwen-image">Demo</a>&nbsp&nbsp | &nbsp&nbsp💬 <a href="https://github.com/QwenLM/Qwen-Image/blob/main/assets/wechat.png">WeChat (微信)</a>&nbsp&nbsp | &nbsp&nbsp🫨 <a href="https://discord.gg/CV4E9rpNSD">Discord</a>&nbsp&nbsp
16
+ </p>
17
+
18
+ <p align="center">
19
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/merge3.jpg" width="1600"/>
20
+ <p>
21
+
22
+ ## Introduction
23
+ We are thrilled to release **Qwen-Image**, an image generation foundation model in the Qwen series that achieves significant advances in **complex text rendering** and **precise image editing**. Experiments show strong general capabilities in both image generation and editing, with exceptional performance in text rendering, especially for Chinese.
24
+
25
+ ![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/bench.png#center)
26
+
27
+ ## News
28
+ - 2025.08.04: We released the [Technical Report](https://arxiv.org/abs/2508.02324) of Qwen-Image!
29
+ - 2025.08.04: We released Qwen-Image weights! Check at [huggingface](https://huggingface.co/Qwen/Qwen-Image) and [Modelscope](https://modelscope.cn/models/Qwen/Qwen-Image)!
30
+ - 2025.08.04: We released Qwen-Image! Check our [blog](https://qwenlm.github.io/blog/qwen-image) for more details!
31
+
32
+
33
+ ## Quick Start
34
+
35
+ Install the latest version of diffusers
36
+ ```
37
+ pip install git+https://github.com/huggingface/diffusers
38
+ ```
39
+
40
+ The following contains a code snippet illustrating how to use the model to generate images based on text prompts:
41
+
42
+ ```python
43
+ from diffusers import DiffusionPipeline
44
+ import torch
45
+
46
+ model_name = "Qwen/Qwen-Image"
47
+
48
+ # Load the pipeline
49
+ if torch.cuda.is_available():
50
+ torch_dtype = torch.bfloat16
51
+ device = "cuda"
52
+ else:
53
+ torch_dtype = torch.float32
54
+ device = "cpu"
55
+
56
+ pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
57
+ pipe = pipe.to(device)
58
+
59
+ positive_magic = {
60
+ "en": ", Ultra HD, 4K, cinematic composition.", # for english prompt
61
+ "zh": ", 超清,4K,电影级构图." # for chinese prompt
62
+ }
63
+
64
+ # Generate image
65
+ prompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee 😊 $2 per cup," with a neon light beside it displaying "通义千问". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "π≈3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''
66
+
67
+ negative_prompt = " " # using an empty string if you do not have specific concept to remove
68
+
69
+
70
+ # Generate with different aspect ratios
71
+ aspect_ratios = {
72
+ "1:1": (1328, 1328),
73
+ "16:9": (1664, 928),
74
+ "9:16": (928, 1664),
75
+ "4:3": (1472, 1140),
76
+ "3:4": (1140, 1472),
77
+ "3:2": (1584, 1056),
78
+ "2:3": (1056, 1584),
79
+ }
80
+
81
+ width, height = aspect_ratios["16:9"]
82
+
83
+ image = pipe(
84
+ prompt=prompt + positive_magic["en"],
85
+ negative_prompt=negative_prompt,
86
+ width=width,
87
+ height=height,
88
+ num_inference_steps=50,
89
+ true_cfg_scale=4.0,
90
+ generator=torch.Generator(device="cuda").manual_seed(42)
91
+ ).images[0]
92
+
93
+ image.save("example.png")
94
+ ```
95
+
96
+ ## Show Cases
97
+
98
+ One of its standout capabilities is high-fidelity text rendering across diverse images. Whether it’s alphabetic languages like English or logographic scripts like Chinese, Qwen-Image preserves typographic details, layout coherence, and contextual harmony with stunning accuracy. Text isn’t just overlaid—it’s seamlessly integrated into the visual fabric.
99
+
100
+ ![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s1.jpg#center)
101
+
102
+ Beyond text, Qwen-Image excels at general image generation with support for a wide range of artistic styles. From photorealistic scenes to impressionist paintings, from anime aesthetics to minimalist design, the model adapts fluidly to creative prompts, making it a versatile tool for artists, designers, and storytellers.
103
+
104
+ ![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s2.jpg#center)
105
+
106
+ When it comes to image editing, Qwen-Image goes far beyond simple adjustments. It enables advanced operations such as style transfer, object insertion or removal, detail enhancement, text editing within images, and even human pose manipulation—all with intuitive input and coherent output. This level of control brings professional-grade editing within reach of everyday users.
107
+
108
+ ![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s3.jpg#center)
109
+
110
+ But Qwen-Image doesn’t just create or edit—it understands. It supports a suite of image understanding tasks, including object detection, semantic segmentation, depth and edge (Canny) estimation, novel view synthesis, and super-resolution. These capabilities, while technically distinct, can all be seen as specialized forms of intelligent image editing, powered by deep visual comprehension.
111
+
112
+ ![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/s4.jpg#center)
113
+
114
+ Together, these features make Qwen-Image not just a tool for generating pretty pictures, but a comprehensive foundation model for intelligent visual creation and manipulation—where language, layout, and imagery converge.
115
+
116
+
117
+ ## License Agreement
118
+
119
+ Qwen-Image is licensed under Apache 2.0.
120
+
121
+ ## Citation
122
+
123
+ We kindly encourage citation of our work if you find it useful.
124
+
125
+ ```bibtex
126
+ @misc{wu2025qwenimagetechnicalreport,
127
+ title={Qwen-Image Technical Report},
128
+ author={Chenfei Wu and Jiahao Li and Jingren Zhou and Junyang Lin and Kaiyuan Gao and Kun Yan and Sheng-ming Yin and Shuai Bai and Xiao Xu and Yilei Chen and Yuxiang Chen and Zecheng Tang and Zekai Zhang and Zhengyi Wang and An Yang and Bowen Yu and Chen Cheng and Dayiheng Liu and Deqing Li and Hang Zhang and Hao Meng and Hu Wei and Jingyuan Ni and Kai Chen and Kuan Cao and Liang Peng and Lin Qu and Minggang Wu and Peng Wang and Shuting Yu and Tingkun Wen and Wensen Feng and Xiaoxiao Xu and Yi Wang and Yichang Zhang and Yongqiang Zhu and Yujia Wu and Yuxuan Cai and Zenan Liu},
129
+ year={2025},
130
+ eprint={2508.02324},
131
+ archivePrefix={arXiv},
132
+ primaryClass={cs.CV},
133
+ url={https://arxiv.org/abs/2508.02324},
134
+ }
135
+ ```
data/QwenImage/model_index.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "QwenImagePipeline",
3
+ "_diffusers_version": "0.34.0.dev0",
4
+ "scheduler": [
5
+ "diffusers",
6
+ "FlowMatchEulerDiscreteScheduler"
7
+ ],
8
+ "text_encoder": [
9
+ "transformers",
10
+ "Qwen2_5_VLForConditionalGeneration"
11
+ ],
12
+ "tokenizer": [
13
+ "transformers",
14
+ "Qwen2Tokenizer"
15
+ ],
16
+ "transformer": [
17
+ "fastvideo.models.qwenimage.transformer_qwenimage",
18
+ "QwenImageTransformer2DModel"
19
+ ],
20
+ "vae": [
21
+ "fastvideo.models.qwenimage.autoencoder_kl_qwenimage",
22
+ "AutoencoderKLQwenImage"
23
+ ]
24
+ }
data/StableDiffusion/.gitattributes ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ftz filter=lfs diff=lfs merge=lfs -text
6
+ *.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.h5 filter=lfs diff=lfs merge=lfs -text
8
+ *.joblib filter=lfs diff=lfs merge=lfs -text
9
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.model filter=lfs diff=lfs merge=lfs -text
11
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.npy filter=lfs diff=lfs merge=lfs -text
13
+ *.npz filter=lfs diff=lfs merge=lfs -text
14
+ *.onnx filter=lfs diff=lfs merge=lfs -text
15
+ *.ot filter=lfs diff=lfs merge=lfs -text
16
+ *.parquet filter=lfs diff=lfs merge=lfs -text
17
+ *.pb filter=lfs diff=lfs merge=lfs -text
18
+ *.pickle filter=lfs diff=lfs merge=lfs -text
19
+ *.pkl filter=lfs diff=lfs merge=lfs -text
20
+ *.pt filter=lfs diff=lfs merge=lfs -text
21
+ *.pth filter=lfs diff=lfs merge=lfs -text
22
+ *.rar filter=lfs diff=lfs merge=lfs -text
23
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
24
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
25
+ *.tflite filter=lfs diff=lfs merge=lfs -text
26
+ *.tgz filter=lfs diff=lfs merge=lfs -text
27
+ *.wasm filter=lfs diff=lfs merge=lfs -text
28
+ *.xz filter=lfs diff=lfs merge=lfs -text
29
+ *.zip filter=lfs diff=lfs merge=lfs -text
30
+ *.zst filter=lfs diff=lfs merge=lfs -text
31
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
data/StableDiffusion/README.md ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ tags:
4
+ - stable-diffusion
5
+ - stable-diffusion-diffusers
6
+ - text-to-image
7
+ widget:
8
+ - text: "A high tech solarpunk utopia in the Amazon rainforest"
9
+ example_title: Amazon rainforest
10
+ - text: "A pikachu fine dining with a view to the Eiffel Tower"
11
+ example_title: Pikachu in Paris
12
+ - text: "A mecha robot in a favela in expressionist style"
13
+ example_title: Expressionist robot
14
+ - text: "an insect robot preparing a delicious meal"
15
+ example_title: Insect robot
16
+ - text: "A small cabin on top of a snowy mountain in the style of Disney, artstation"
17
+ example_title: Snowy disney cabin
18
+ extra_gated_prompt: |-
19
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
20
+ The CreativeML OpenRAIL License specifies:
21
+
22
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
23
+ 2. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
24
+ 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)
25
+ Please read the full license carefully here: https://huggingface.co/spaces/CompVis/stable-diffusion-license
26
+
27
+ extra_gated_heading: Please read the LICENSE to access this model
28
+ ---
29
+
30
+ # Stable Diffusion v1-4 Model Card
31
+
32
+ Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
33
+ For more information about how Stable Diffusion functions, please have a look at [🤗's Stable Diffusion with 🧨Diffusers blog](https://huggingface.co/blog/stable_diffusion).
34
+
35
+ The **Stable-Diffusion-v1-4** checkpoint was initialized with the weights of the [Stable-Diffusion-v1-2](https:/steps/huggingface.co/CompVis/stable-diffusion-v1-2)
36
+ checkpoint and subsequently fine-tuned on 225k steps at resolution 512x512 on "laion-aesthetics v2 5+" and 10% dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
37
+
38
+ This weights here are intended to be used with the 🧨 Diffusers library. If you are looking for the weights to be loaded into the CompVis Stable Diffusion codebase, [come here](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original)
39
+
40
+ ## Model Details
41
+ - **Developed by:** Robin Rombach, Patrick Esser
42
+ - **Model type:** Diffusion-based text-to-image generation model
43
+ - **Language(s):** English
44
+ - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based.
45
+ - **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses a fixed, pretrained text encoder ([CLIP ViT-L/14](https://arxiv.org/abs/2103.00020)) as suggested in the [Imagen paper](https://arxiv.org/abs/2205.11487).
46
+ - **Resources for more information:** [GitHub Repository](https://github.com/CompVis/stable-diffusion), [Paper](https://arxiv.org/abs/2112.10752).
47
+ - **Cite as:**
48
+
49
+ @InProceedings{Rombach_2022_CVPR,
50
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
51
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
52
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
53
+ month = {June},
54
+ year = {2022},
55
+ pages = {10684-10695}
56
+ }
57
+
58
+ ## Examples
59
+
60
+ We recommend using [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion.
61
+
62
+ ### PyTorch
63
+
64
+ ```bash
65
+ pip install --upgrade diffusers transformers scipy
66
+ ```
67
+
68
+ Running the pipeline with the default PNDM scheduler:
69
+
70
+ ```python
71
+ import torch
72
+ from diffusers import StableDiffusionPipeline
73
+
74
+ model_id = "CompVis/stable-diffusion-v1-4"
75
+ device = "cuda"
76
+
77
+
78
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
79
+ pipe = pipe.to(device)
80
+
81
+ prompt = "a photo of an astronaut riding a horse on mars"
82
+ image = pipe(prompt).images[0]
83
+
84
+ image.save("astronaut_rides_horse.png")
85
+ ```
86
+
87
+ **Note**:
88
+ If you are limited by GPU memory and have less than 4GB of GPU RAM available, please make sure to load the StableDiffusionPipeline in float16 precision instead of the default float32 precision as done above. You can do so by telling diffusers to expect the weights to be in float16 precision:
89
+
90
+
91
+ ```py
92
+ import torch
93
+
94
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
95
+ pipe = pipe.to(device)
96
+ pipe.enable_attention_slicing()
97
+
98
+ prompt = "a photo of an astronaut riding a horse on mars"
99
+ image = pipe(prompt).images[0]
100
+
101
+ image.save("astronaut_rides_horse.png")
102
+ ```
103
+
104
+ To swap out the noise scheduler, pass it to `from_pretrained`:
105
+
106
+ ```python
107
+ from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
108
+
109
+ model_id = "CompVis/stable-diffusion-v1-4"
110
+
111
+ # Use the Euler scheduler here instead
112
+ scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
113
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
114
+ pipe = pipe.to("cuda")
115
+
116
+ prompt = "a photo of an astronaut riding a horse on mars"
117
+ image = pipe(prompt).images[0]
118
+
119
+ image.save("astronaut_rides_horse.png")
120
+ ```
121
+
122
+ ### JAX/Flax
123
+
124
+ To use StableDiffusion on TPUs and GPUs for faster inference you can leverage JAX/Flax.
125
+
126
+ Running the pipeline with default PNDMScheduler
127
+
128
+ ```python
129
+ import jax
130
+ import numpy as np
131
+ from flax.jax_utils import replicate
132
+ from flax.training.common_utils import shard
133
+
134
+ from diffusers import FlaxStableDiffusionPipeline
135
+
136
+ pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
137
+ "CompVis/stable-diffusion-v1-4", revision="flax", dtype=jax.numpy.bfloat16
138
+ )
139
+
140
+ prompt = "a photo of an astronaut riding a horse on mars"
141
+
142
+ prng_seed = jax.random.PRNGKey(0)
143
+ num_inference_steps = 50
144
+
145
+ num_samples = jax.device_count()
146
+ prompt = num_samples * [prompt]
147
+ prompt_ids = pipeline.prepare_inputs(prompt)
148
+
149
+ # shard inputs and rng
150
+ params = replicate(params)
151
+ prng_seed = jax.random.split(prng_seed, num_samples)
152
+ prompt_ids = shard(prompt_ids)
153
+
154
+ images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=True).images
155
+ images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))
156
+ ```
157
+
158
+ **Note**:
159
+ If you are limited by TPU memory, please make sure to load the `FlaxStableDiffusionPipeline` in `bfloat16` precision instead of the default `float32` precision as done above. You can do so by telling diffusers to load the weights from "bf16" branch.
160
+
161
+ ```python
162
+ import jax
163
+ import numpy as np
164
+ from flax.jax_utils import replicate
165
+ from flax.training.common_utils import shard
166
+
167
+ from diffusers import FlaxStableDiffusionPipeline
168
+
169
+ pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
170
+ "CompVis/stable-diffusion-v1-4", revision="bf16", dtype=jax.numpy.bfloat16
171
+ )
172
+
173
+ prompt = "a photo of an astronaut riding a horse on mars"
174
+
175
+ prng_seed = jax.random.PRNGKey(0)
176
+ num_inference_steps = 50
177
+
178
+ num_samples = jax.device_count()
179
+ prompt = num_samples * [prompt]
180
+ prompt_ids = pipeline.prepare_inputs(prompt)
181
+
182
+ # shard inputs and rng
183
+ params = replicate(params)
184
+ prng_seed = jax.random.split(prng_seed, num_samples)
185
+ prompt_ids = shard(prompt_ids)
186
+
187
+ images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=True).images
188
+ images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))
189
+ ```
190
+
191
+ # Uses
192
+
193
+ ## Direct Use
194
+ The model is intended for research purposes only. Possible research areas and
195
+ tasks include
196
+
197
+ - Safe deployment of models which have the potential to generate harmful content.
198
+ - Probing and understanding the limitations and biases of generative models.
199
+ - Generation of artworks and use in design and other artistic processes.
200
+ - Applications in educational or creative tools.
201
+ - Research on generative models.
202
+
203
+ Excluded uses are described below.
204
+
205
+ ### Misuse, Malicious Use, and Out-of-Scope Use
206
+ _Note: This section is taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), but applies in the same way to Stable Diffusion v1_.
207
+
208
+
209
+ The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
210
+
211
+ #### Out-of-Scope Use
212
+ The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
213
+
214
+ #### Misuse and Malicious Use
215
+ Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
216
+
217
+ - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
218
+ - Intentionally promoting or propagating discriminatory content or harmful stereotypes.
219
+ - Impersonating individuals without their consent.
220
+ - Sexual content without consent of the people who might see it.
221
+ - Mis- and disinformation
222
+ - Representations of egregious violence and gore
223
+ - Sharing of copyrighted or licensed material in violation of its terms of use.
224
+ - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
225
+
226
+ ## Limitations and Bias
227
+
228
+ ### Limitations
229
+
230
+ - The model does not achieve perfect photorealism
231
+ - The model cannot render legible text
232
+ - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
233
+ - Faces and people in general may not be generated properly.
234
+ - The model was trained mainly with English captions and will not work as well in other languages.
235
+ - The autoencoding part of the model is lossy
236
+ - The model was trained on a large-scale dataset
237
+ [LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material
238
+ and is not fit for product use without additional safety mechanisms and
239
+ considerations.
240
+ - No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data.
241
+ The training data can be searched at [https://rom1504.github.io/clip-retrieval/](https://rom1504.github.io/clip-retrieval/) to possibly assist in the detection of memorized images.
242
+
243
+ ### Bias
244
+
245
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
246
+ Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
247
+ which consists of images that are primarily limited to English descriptions.
248
+ Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
249
+ This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
250
+ ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
251
+
252
+ ### Safety Module
253
+
254
+ The intended use of this model is with the [Safety Checker](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/safety_checker.py) in Diffusers.
255
+ This checker works by checking model outputs against known hard-coded NSFW concepts.
256
+ The concepts are intentionally hidden to reduce the likelihood of reverse-engineering this filter.
257
+ Specifically, the checker compares the class probability of harmful concepts in the embedding space of the `CLIPTextModel` *after generation* of the images.
258
+ The concepts are passed into the model with the generated image and compared to a hand-engineered weight for each NSFW concept.
259
+
260
+
261
+ ## Training
262
+
263
+ **Training Data**
264
+ The model developers used the following dataset for training the model:
265
+
266
+ - LAION-2B (en) and subsets thereof (see next section)
267
+
268
+ **Training Procedure**
269
+ Stable Diffusion v1-4 is a latent diffusion model which combines an autoencoder with a diffusion model that is trained in the latent space of the autoencoder. During training,
270
+
271
+ - Images are encoded through an encoder, which turns images into latent representations. The autoencoder uses a relative downsampling factor of 8 and maps images of shape H x W x 3 to latents of shape H/f x W/f x 4
272
+ - Text prompts are encoded through a ViT-L/14 text-encoder.
273
+ - The non-pooled output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention.
274
+ - The loss is a reconstruction objective between the noise that was added to the latent and the prediction made by the UNet.
275
+
276
+ We currently provide four checkpoints, which were trained as follows.
277
+ - [`stable-diffusion-v1-1`](https://huggingface.co/CompVis/stable-diffusion-v1-1): 237,000 steps at resolution `256x256` on [laion2B-en](https://huggingface.co/datasets/laion/laion2B-en).
278
+ 194,000 steps at resolution `512x512` on [laion-high-resolution](https://huggingface.co/datasets/laion/laion-high-resolution) (170M examples from LAION-5B with resolution `>= 1024x1024`).
279
+ - [`stable-diffusion-v1-2`](https://huggingface.co/CompVis/stable-diffusion-v1-2): Resumed from `stable-diffusion-v1-1`.
280
+ 515,000 steps at resolution `512x512` on "laion-improved-aesthetics" (a subset of laion2B-en,
281
+ filtered to images with an original size `>= 512x512`, estimated aesthetics score `> 5.0`, and an estimated watermark probability `< 0.5`. The watermark estimate is from the LAION-5B metadata, the aesthetics score is estimated using an [improved aesthetics estimator](https://github.com/christophschuhmann/improved-aesthetic-predictor)).
282
+ - [`stable-diffusion-v1-3`](https://huggingface.co/CompVis/stable-diffusion-v1-3): Resumed from `stable-diffusion-v1-2`. 195,000 steps at resolution `512x512` on "laion-improved-aesthetics" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
283
+ - [`stable-diffusion-v1-4`](https://huggingface.co/CompVis/stable-diffusion-v1-4) Resumed from `stable-diffusion-v1-2`.225,000 steps at resolution `512x512` on "laion-aesthetics v2 5+" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598).
284
+
285
+ - **Hardware:** 32 x 8 x A100 GPUs
286
+ - **Optimizer:** AdamW
287
+ - **Gradient Accumulations**: 2
288
+ - **Batch:** 32 x 8 x 2 x 4 = 2048
289
+ - **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant
290
+
291
+ ## Evaluation Results
292
+ Evaluations with different classifier-free guidance scales (1.5, 2.0, 3.0, 4.0,
293
+ 5.0, 6.0, 7.0, 8.0) and 50 PLMS sampling
294
+ steps show the relative improvements of the checkpoints:
295
+
296
+ ![pareto](https://huggingface.co/CompVis/stable-diffusion/resolve/main/v1-variants-scores.jpg)
297
+
298
+ Evaluated using 50 PLMS steps and 10000 random prompts from the COCO2017 validation set, evaluated at 512x512 resolution. Not optimized for FID scores.
299
+ ## Environmental Impact
300
+
301
+ **Stable Diffusion v1** **Estimated Emissions**
302
+ Based on that information, we estimate the following CO2 emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.
303
+
304
+ - **Hardware Type:** A100 PCIe 40GB
305
+ - **Hours used:** 150000
306
+ - **Cloud Provider:** AWS
307
+ - **Compute Region:** US-east
308
+ - **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 11250 kg CO2 eq.
309
+
310
+
311
+ ## Citation
312
+
313
+ ```bibtex
314
+ @InProceedings{Rombach_2022_CVPR,
315
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
316
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
317
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
318
+ month = {June},
319
+ year = {2022},
320
+ pages = {10684-10695}
321
+ }
322
+ ```
323
+
324
+ *This model card was written by: Robin Rombach and Patrick Esser and is based on the [DALL-E Mini model card](https://huggingface.co/dalle-mini/dalle-mini).*
data/StableDiffusion/feature_extractor/preprocessor_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": true,
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_resize": true,
7
+ "feature_extractor_type": "CLIPFeatureExtractor",
8
+ "image_mean": [
9
+ 0.48145466,
10
+ 0.4578275,
11
+ 0.40821073
12
+ ],
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "resample": 3,
19
+ "size": 224
20
+ }
data/StableDiffusion/model_index.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.2.2",
4
+ "feature_extractor": [
5
+ "transformers",
6
+ "CLIPImageProcessor"
7
+ ],
8
+ "safety_checker": [
9
+ "stable_diffusion",
10
+ "StableDiffusionSafetyChecker"
11
+ ],
12
+ "scheduler": [
13
+ "diffusers",
14
+ "PNDMScheduler"
15
+ ],
16
+ "text_encoder": [
17
+ "transformers",
18
+ "CLIPTextModel"
19
+ ],
20
+ "tokenizer": [
21
+ "transformers",
22
+ "CLIPTokenizer"
23
+ ],
24
+ "unet": [
25
+ "diffusers",
26
+ "UNet2DConditionModel"
27
+ ],
28
+ "vae": [
29
+ "diffusers",
30
+ "AutoencoderKL"
31
+ ]
32
+ }
data/StableDiffusion/scheduler/scheduler_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "PNDMScheduler",
3
+ "_diffusers_version": "0.7.0.dev0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "num_train_timesteps": 1000,
8
+ "set_alpha_to_one": false,
9
+ "skip_prk_steps": true,
10
+ "steps_offset": 1,
11
+ "trained_betas": null,
12
+ "clip_sample": false
13
+ }
data/StableDiffusion/text_encoder/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai/clip-vit-large-patch14",
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": "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
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.21.0.dev0",
23
+ "vocab_size": 49408
24
+ }
data/StableDiffusion/tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
data/StableDiffusion/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
+ }
data/StableDiffusion/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<|startoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "do_lower_case": true,
12
+ "eos_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "errors": "replace",
21
+ "model_max_length": 77,
22
+ "name_or_path": "openai/clip-vit-large-patch14",
23
+ "pad_token": "<|endoftext|>",
24
+ "special_tokens_map_file": "./special_tokens_map.json",
25
+ "tokenizer_class": "CLIPTokenizer",
26
+ "unk_token": {
27
+ "__type": "AddedToken",
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
data/StableDiffusion/tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
data/StableDiffusion/v1-variants-scores.jpg ADDED
data/StableDiffusion/vae/config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.2.2",
4
+ "act_fn": "silu",
5
+ "block_out_channels": [
6
+ 128,
7
+ 256,
8
+ 512,
9
+ 512
10
+ ],
11
+ "down_block_types": [
12
+ "DownEncoderBlock2D",
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D"
16
+ ],
17
+ "in_channels": 3,
18
+ "latent_channels": 4,
19
+ "layers_per_block": 2,
20
+ "out_channels": 3,
21
+ "sample_size": 512,
22
+ "scaling_factor": 0.18215,
23
+ "up_block_types": [
24
+ "UpDecoderBlock2D",
25
+ "UpDecoderBlock2D",
26
+ "UpDecoderBlock2D",
27
+ "UpDecoderBlock2D"
28
+ ]
29
+ }
fastvideo/models/hunyuan/modules/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (843 Bytes). View file
 
fastvideo/models/hunyuan/modules/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (1.07 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/attenion.cpython-310.pyc ADDED
Binary file (2.14 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/embed_layers.cpython-312.pyc ADDED
Binary file (7.15 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/models.cpython-310.pyc ADDED
Binary file (18.4 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/models.cpython-312.pyc ADDED
Binary file (30.5 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/norm_layers.cpython-312.pyc ADDED
Binary file (3.19 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/posemb_layers.cpython-310.pyc ADDED
Binary file (10.1 kB). View file
 
fastvideo/models/hunyuan/modules/__pycache__/token_refiner.cpython-312.pyc ADDED
Binary file (8.94 kB). View file
 
fastvideo/models/qwenimage/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (179 Bytes). View file
 
fastvideo/models/qwenimage/__pycache__/autoencoder_kl_qwenimage.cpython-310.pyc ADDED
Binary file (31.8 kB). View file
 
fastvideo/models/qwenimage/__pycache__/pipeline_output.cpython-310.pyc ADDED
Binary file (1.02 kB). View file
 
fastvideo/models/qwenimage/__pycache__/pipeline_qwenimage.cpython-310.pyc ADDED
Binary file (25.9 kB). View file
 
fastvideo/models/qwenimage/__pycache__/transformer_qwenimage.cpython-310.pyc ADDED
Binary file (19.4 kB). View file
 
fastvideo/models/stable_diffusion/__pycache__/ddim_with_logprob.cpython-310.pyc ADDED
Binary file (4.81 kB). View file
 
fastvideo/models/stable_diffusion/__pycache__/pipeline_with_logprob.cpython-310.pyc ADDED
Binary file (8.95 kB). View file
 
fastvideo/utils/__pycache__/checkpoint.cpython-310.pyc ADDED
Binary file (7.96 kB). View file
 
fastvideo/utils/__pycache__/checkpoint.cpython-312.pyc ADDED
Binary file (15.3 kB). View file
 
fastvideo/utils/__pycache__/communications.cpython-310.pyc ADDED
Binary file (7.3 kB). View file
 
fastvideo/utils/__pycache__/communications.cpython-312.pyc ADDED
Binary file (11.6 kB). View file
 
fastvideo/utils/__pycache__/communications_flux.cpython-312.pyc ADDED
Binary file (11.9 kB). View file
 
fastvideo/utils/__pycache__/communications_flux_rfpt.cpython-312.pyc ADDED
Binary file (13 kB). View file
 
fastvideo/utils/__pycache__/dataset_utils.cpython-310.pyc ADDED
Binary file (11.8 kB). View file
 
fastvideo/utils/__pycache__/dataset_utils.cpython-312.pyc ADDED
Binary file (16.8 kB). View file
 
fastvideo/utils/__pycache__/fsdp_util.cpython-310.pyc ADDED
Binary file (3.13 kB). View file
 
fastvideo/utils/__pycache__/fsdp_util.cpython-312.pyc ADDED
Binary file (4.3 kB). View file
 
fastvideo/utils/__pycache__/fsdp_util_qwenimage.cpython-310.pyc ADDED
Binary file (2.36 kB). View file
 
fastvideo/utils/__pycache__/load.cpython-310.pyc ADDED
Binary file (10.2 kB). View file
 
fastvideo/utils/__pycache__/load.cpython-312.pyc ADDED
Binary file (15.8 kB). View file
 
fastvideo/utils/__pycache__/logging_.cpython-310.pyc ADDED
Binary file (915 Bytes). View file
 
fastvideo/utils/__pycache__/logging_.cpython-312.pyc ADDED
Binary file (1.31 kB). View file
 
fastvideo/utils/__pycache__/parallel_states.cpython-310.pyc ADDED
Binary file (2.08 kB). View file
 
fastvideo/utils/__pycache__/parallel_states.cpython-312.pyc ADDED
Binary file (3.02 kB). View file
 
fastvideo/utils/__pycache__/validation.cpython-312.pyc ADDED
Binary file (13.9 kB). View file