alfredplpl commited on
Commit
da1a4a7
1 Parent(s): 6689f57
.gitattributes CHANGED
@@ -33,3 +33,15 @@ saved_model/**/* 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
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
+ emi.safetensors filter=lfs diff=lfs merge=lfs -text
37
+ emi_stable.safetensors filter=lfs diff=lfs merge=lfs -text
38
+ unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
39
+ vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
40
+ text_encoder/model.safetensors filter=lfs diff=lfs merge=lfs -text
41
+ text_encoder_2/model.safetensors filter=lfs diff=lfs merge=lfs -text
42
+ example_2.png filter=lfs diff=lfs merge=lfs -text
43
+ example_4.png filter=lfs diff=lfs merge=lfs -text
44
+ eyecatch.png filter=lfs diff=lfs merge=lfs -text
45
+ example_1.jpg filter=lfs diff=lfs merge=lfs -text
46
+ example_3.jpg filter=lfs diff=lfs merge=lfs -text
47
+ eyecatch.jpg filter=lfs diff=lfs merge=lfs -text
LICENSE.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2023 AI Picasso Inc.
2
+ CreativeML Open RAIL++-M License dated July 26, 2023
3
+
4
+ Section I: PREAMBLE
5
+ Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation.
6
+ Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations.
7
+ In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation.
8
+ Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this agreement aims to strike a balance between both in order to enable responsible open-science in the field of AI.
9
+ This CreativeML Open RAIL++-M License governs the use of the model (and its derivatives) and is informed by the model card associated with the model.
10
+ NOW THEREFORE, You and Licensor agree as follows:
11
+ Definitions
12
+ "License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.
13
+ "Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.
14
+ "Output" means the results of operating a Model as embodied in informational content resulting therefrom.
15
+ "Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.
16
+ "Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.
17
+ "Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.
18
+ "Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.
19
+ "Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.
20
+ "You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.
21
+ "Third Parties" means individuals or legal entities that are not under common control with Licensor or You.
22
+ "Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
23
+ "Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.
24
+
25
+ Section II: INTELLECTUAL PROPERTY RIGHTS
26
+ Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in
27
+
28
+ Section III.
29
+ Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model.
30
+ Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.
31
+ Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
32
+ Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License.
33
+ Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5).
34
+ The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.
35
+
36
+ Section IV: OTHER PROVISIONS
37
+ Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License.
38
+ Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors.
39
+ Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.
40
+ Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
41
+ Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
42
+ If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
43
+
44
+ END OF TERMS AND CONDITIONS
45
+
46
+ Attachment A
47
+ Use Restrictions
48
+ You agree not to use the Model or Derivatives of the Model:
49
+ In any way that violates any applicable national, federal, state, local or international law or regulation;
50
+ For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
51
+ To generate or disseminate verifiably false information and/or content with the purpose of harming others;
52
+ To generate or disseminate personal identifiable information that can be used to harm an individual;
53
+ To defame, disparage or otherwise harass others;
54
+ For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;
55
+ For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
56
+ To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
57
+ For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;
58
+ To provide medical advice and medical results interpretation;
59
+ To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).
README.md CHANGED
@@ -1,3 +1,226 @@
1
  ---
2
  license: openrail++
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: openrail++
3
+ tags:
4
+ - stable-diffusion
5
+ - text-to-image
6
+ inference: false
7
+ library_name: diffusers
8
  ---
9
+
10
+ # Emi Model Card
11
+
12
+ **このリポジトリはオリジナルのクローンです。最新のバージョンを落とすためにも、できる限り本のリポジトリから落としてください。**
13
+ **This repository is clone of the original. Please use the original repository to use latest version as possible.**
14
+
15
+ ![eyecatch.jpg](eyecatch.jpg)
16
+ [Original(PNG)](eyecatch.png)
17
+
18
+ English: [Click Here](README_en.md)
19
+
20
+ # はじめに
21
+ Emi (Ethereal master of illustration) は、
22
+ 最先端の開発機材H100と画像生成Stable Diffusion XL 1.0を用いて
23
+ AI Picasso社が開発したAIアートに特化した画像生成AIです。
24
+ このモデルの特徴として、Danbooruなどにある無断転載画像を学習していないことがあげられます。
25
+
26
+ # ライセンスについて
27
+ ライセンスについては、これまでとは違い、 CreativeML Open RAIL++-M License です。
28
+ したがって、**商用利用可能**です。
29
+ これは次のように判断したためです。
30
+ - 画像生成AIが普及するに伴い、創作業界に悪影響を及ぼさないように、マナーを守る人が増えてきたため
31
+ - 他の画像生成AIが商用可能である以上、あまり非商用ライセンスである実効性がなくなってきたため
32
+
33
+ # 使い方
34
+ [ここ](https://huggingface.co/spaces/aipicasso/emi-latest-demo)からデモを利用することができます。
35
+ 本格的に利用する人は[ここ](emi.safetensors)からモデルをダウンロードできます。
36
+ 通常版で生成がうまく行かない場合は、[安定版](emi_stable.safetensors)をお使いください。
37
+
38
+ # シンプルな作品例
39
+
40
+
41
+ ![example_1.jpg](example_1.jpg)
42
+
43
+ ```
44
+ positive prompt: anime artwork, anime style, (1girl), (black bob hair:1.5), brown eyes, red maples, sky, ((transparent))
45
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
46
+ ```
47
+
48
+ ![example_2.png](example_2.png)
49
+
50
+ ```
51
+ positive prompt: monochrome, black and white, (japanese manga), mount fuji
52
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
53
+ ```
54
+
55
+ ![example_3.jpg](example_3.jpg)
56
+ ```
57
+ positive prompt: (1man), focus, white wavy short hair, blue eyes, black shirt, white background, simple background
58
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
59
+ ```
60
+
61
+ # モデルの出力向上について
62
+ - プロンプトにtransparentという言葉を入れると、より最近の画風になります。
63
+ - 全身 (full body) を描くとうまく行かない場合もあるため、そのときは[安定版](emi_stable.safetensors)をお試しください。
64
+ - 使えるプロンプトはWaifu Diffusionと同じです。また、Stable Diffusionのように使うこともできます。
65
+ - ネガティブプロンプトに[Textual Inversion](https://civitai.com/models/119032/unaestheticxl-or-negative-ti)を使用することをおすすめします。
66
+ - 手が不安定なため、[DreamShaper XL1.0](https://civitai.com/models/112902?modelVersionId=126688)などの実写系モデルとのマージをおすすめします。
67
+ - ChatGPTを用いてプロンプトを洗練すると、自分の枠を超えた作品に出会えます。
68
+ - 最新のComfyUIにあるFreeUノードを次のパラメータで使うとさらに出力が上がる可能性があります。次の画像はFreeUを使った例です。
69
+ - b1 = 1.1, b2 = 1.2, s1 = 0.6, s2 = 0.4 [report](https://wandb.ai/nasirk24/UNET-FreeU-SDXL/reports/FreeU-SDXL-Optimal-Parameters--Vmlldzo1NDg4NTUw)
70
+
71
+
72
+ ![example_4.png](example_4.png)
73
+
74
+ # 法律について
75
+ 本モデルは日本にて作成されました。したがって、日本の法律が適用されます。
76
+ 本モデルの学習は、著作権法第30条の4に基づき、合法であると主張します。
77
+ また、本モデルの配布については、著作権法や刑法175条に照らしてみても、
78
+ 正犯や幇助犯にも該当しないと主張します。詳しくは柿沼弁護士の[見解](https://twitter.com/tka0120/status/1601483633436393473?s=20&t=yvM9EX0Em-_7lh8NJln3IQ)を御覧ください。
79
+ ただし、ライセンスにもある通り、本モデルの生成物は各種法令に従って取り扱って下さい。
80
+
81
+ # 連絡先
82
+ support@aipicasso.app
83
+
84
+ 以下、一般的なモデルカードの日本語訳です。
85
+
86
+ ## モデル詳細
87
+ - **モデルタイプ:** 拡散モデルベースの text-to-image 生成モデル
88
+ - **言語:** 日本語
89
+ - **ライセンス:** [CreativeML Open RAIL++-M License](LICENSE.md)
90
+ - **モデルの説明:** このモデルはプロンプトに応じて適切な画像を生成することができます。アルゴリズムは [Latent Diffusion Model](https://arxiv.org/abs/2307.01952) と [OpenCLIP-ViT/G](https://github.com/mlfoundations/open_clip)、[CLIP-L](https://github.com/openai/CLIP) です。
91
+ - **補足:**
92
+ - **参考文献:**
93
+ ```bibtex
94
+ @misc{podell2023sdxl,
95
+ title={SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis},
96
+ author={Dustin Podell and Zion English and Kyle Lacey and Andreas Blattmann and Tim Dockhorn and Jonas Müller and Joe Penna and Robin Rombach},
97
+ year={2023},
98
+ eprint={2307.01952},
99
+ archivePrefix={arXiv},
100
+ primaryClass={cs.CV}
101
+ }
102
+ ```
103
+
104
+ ## モデルの使用例
105
+
106
+ Stable Diffusion XL 1.0と同じ使い方です。
107
+ たくさんの方法がありますが、3つのパターンを提供します。
108
+ - ComfyUI
109
+ - Fooocus
110
+ - Diffusers
111
+
112
+ ### ComfyUIやFooocusの場合
113
+
114
+ Stable Diffusion XL 1.0 の使い方と同じく、safetensor形式のモデルファイルを使ってください。
115
+ 詳しいインストール方法は、[こちらの記事](https://note.com/it_navi/n/n723d93bedd64)を参照してください。
116
+
117
+ ### Diffusersの場合
118
+
119
+ [🤗's Diffusers library](https://github.com/huggingface/diffusers) を使ってください。
120
+
121
+ まずは、以下のスクリプトを実行し、ライブラリをいれてください。
122
+
123
+ ```bash
124
+ pip install invisible_watermark transformers accelerate safetensors diffusers
125
+ ```
126
+
127
+ 次のスクリプトを実行し、画像を生成してください。
128
+
129
+ ```python
130
+ from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
131
+ import torch
132
+
133
+ model_id = "aipicasso/emi"
134
+
135
+ scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
136
+ pipe = StableDiffusionXLPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
137
+ pipe = pipe.to("cuda")
138
+
139
+ prompt = "1girl, sunflowers, brown bob hair, brown eyes, sky, transparent"
140
+ images = pipe(prompt, num_inference_steps=20).images
141
+ images[0].save("girl.png")
142
+
143
+ ```
144
+
145
+ 複雑な操作は[デモのソースコード](https://huggingface.co/spaces/aipicasso/emi-latest-demo/blob/main/app.py)を参考にしてください。
146
+
147
+ #### 想定される用途
148
+ - イラストや漫画、アニメの作画補助
149
+ - 商用・非商用は問わない
150
+ - 依頼の際のクリエイターとのコミュニケーション
151
+ - 画像生成サービスの商用提供
152
+ - 生成物の取り扱いには注意して使ってください。
153
+ - 自己表現
154
+ - このAIを使い、「あなた」らしさを発信すること
155
+ - 研究開発
156
+ - Discord上でのモデルの利用
157
+ - プロンプトエンジニアリング
158
+ - ファインチューニング(追加学習とも)
159
+ - DreamBooth など
160
+ - 他のモデルとのマージ
161
+ - 本モデルの性能をFIDなどで調べること
162
+ - 本モデルがStable Diffusion以外のモデルとは独立であることをチェックサムやハッシュ関数などで調べること
163
+ - 教育
164
+ - 美大生や専門学校生の卒業制作
165
+ - 大学生の卒業論文や課題制作
166
+ - 先生が画像生成AIの現状を伝えること
167
+ - Hugging Face の Community にかいてある用途
168
+ - 日本語か英語で質問してください
169
+
170
+ #### 想定されない用途
171
+ - 物事を事実として表現するようなこと
172
+ - 先生を困らせるようなこと
173
+ - その他、創作業界に悪影響を及ぼすこと
174
+
175
+ # 使用してはいけない用途や悪意のある用途
176
+ - マネー・ロンダリングに用いないでください
177
+ - デジタル贋作 ([Digital Forgery](https://arxiv.org/abs/2212.03860)) は公開しないでください(著作権法に違反するおそれ)
178
+ - 他人の作品を無断でImage-to-Imageしないでください(著作権法に違反するおそれ)
179
+ - わいせつ物を頒布しないでください (刑法175条に違反するおそれ)
180
+ - いわゆる業界のマナーを守らないようなこと
181
+ - 事実に基づかないことを事実のように語らないようにしてください(威力業務妨害罪が適用されるおそれ)
182
+ - フェイクニュース
183
+
184
+ ## モデルの限界やバイアス
185
+
186
+ ### モデルの限界
187
+
188
+ - 拡散モデルや大規模言語モデルは、いまだに未知の部分が多く、その限界は判明していない。
189
+
190
+ ### バイアス
191
+
192
+ - 拡散モデルや大規模言語モデルは、いまだに未知の部分が多く、バイアスは判明していない。
193
+
194
+ ## 学習
195
+
196
+ **学習データ**
197
+
198
+ - Stable Diffusionと同様のデータセットからDanbooruの無断転載画像を取り除いて手動で集めた約2000枚の画像
199
+ - Stable Diffusionと同様のデータセットからDanbooruの無断転載画像を取り除いて自動で集めた約50万枚の画像
200
+
201
+ **学習プロセス**
202
+
203
+ - **ハードウェア:** H100
204
+
205
+ ## 評価結果
206
+
207
+ 第三者による評価を求めています。
208
+
209
+ ## 環境への影響
210
+
211
+ - **ハードウェアタイプ:** H100
212
+ - **使用時間(単位は時間):** 500
213
+ - **学習した場所:** 日本
214
+
215
+ ## 参考文献
216
+
217
+ ```bibtex
218
+ @misc{podell2023sdxl,
219
+ title={SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis},
220
+ author={Dustin Podell and Zion English and Kyle Lacey and Andreas Blattmann and Tim Dockhorn and Jonas Müller and Joe Penna and Robin Rombach},
221
+ year={2023},
222
+ eprint={2307.01952},
223
+ archivePrefix={arXiv},
224
+ primaryClass={cs.CV}
225
+ }
226
+ ```
README_en.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Emi Model Card
2
+
3
+ ![eyecatch.png](eyecatch.png)
4
+
5
+ # Introduction
6
+ Emi (Ethereal master of illustration) is a text-to-image specialized in AI Art by AI Picasso Inc. using H100 and SDXL 1.0.
7
+ Emi is NOT made of unauthorized reproduction images on Danbooru.
8
+
9
+ # Licence
10
+ Emi's licence is CreativeML Open RAIL++-M License.
11
+ Therefore, you can use Emi for **commercial purpose**.
12
+
13
+ # Usage
14
+ [Click Here](https://huggingface.co/spaces/aipicasso/emi-latest-demo) to use Demo..
15
+
16
+ [Click Here](emi.safetensors) to get Emi.
17
+
18
+ [Click Here](emi.safetensors) to get Emi stable.
19
+
20
+ # Examples
21
+
22
+
23
+ ![example_1.jpg](example_1.jpg)
24
+
25
+ ```
26
+ positive prompt: anime artwork, anime style, (1girl), (black bob hair:1.5), brown eyes, red maples, sky, ((transparent))
27
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
28
+ ```
29
+
30
+ ![example_2.png](example_2.png)
31
+
32
+ ```
33
+ positive prompt: monochrome, black and white, (japanese manga), mount fuji
34
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
35
+ ```
36
+
37
+ ![example_3.jpg](example_3.jpg)
38
+ ```
39
+ positive prompt: (1man), focus, white wavy short hair, blue eyes, black shirt, white background, simple background
40
+ negative prompt: (embedding:unaestheticXLv31:0.5), photo, deformed, realism, disfigured, low contrast, bad hand
41
+ ```
42
+
43
+ # Toward improving output
44
+ - Use "transparent" in your prompt.
45
+ - You can use the prompts of Waifu Diffusion and Stable Diffusion.
46
+ - Use [Textual Inversion](https://civitai.com/models/119032/unaestheticxl-or-negative-ti) in your negative prompt.
47
+ - You can use ChatGPT to improve your prompt.
48
+
49
+ # Legal information
50
+ We made Emi legally in Japan because Japanese government allows to use images for information analysis such as machine learning.
51
+
52
+ # Contact
53
+ Please feel free to send email: support@aipicasso.app
54
+
emi.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ab8e2059d2c842b7c73dc8f93a7d857ebcbe2214544dc56da962683f7145eb3
3
+ size 6938043538
emi_stable.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51c0e2b8f05beb3d606f7651896bfaafe3008ea6e8624fb969029e94a3149c32
3
+ size 6939235916
example_1.jpg ADDED

Git LFS Details

  • SHA256: 5b30e62fc53ebaebfded7954b85f315bc47ac4245ee6f39e3f34505e516b1ea3
  • Pointer size: 130 Bytes
  • Size of remote file: 88.1 kB
example_2.png ADDED

Git LFS Details

  • SHA256: 950a629ab7fd4b3614215718cf97cac7fc29fe035ebb89ebb482371c36955e50
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
example_3.jpg ADDED

Git LFS Details

  • SHA256: 79aca73ae0bad5eabedb43da1975f1b20b721ae57e17212c2cf7baefcfa750d9
  • Pointer size: 130 Bytes
  • Size of remote file: 36.4 kB
example_4.png ADDED

Git LFS Details

  • SHA256: 57e35ec289cafc9831b78a331cd31605e36836ddfdae9f2e591a3dba986f8b4b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
eyecatch.jpg ADDED

Git LFS Details

  • SHA256: 4c93024e30894e7479078c5ab9dbab9df5c399cc27e266596acc82f2b268792a
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB
eyecatch.png ADDED

Git LFS Details

  • SHA256: 537f0f2a6e7ba2670c3474fcd4052f43bf7daf5acea9648ab65d3ee827be5151
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
model_index.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "StableDiffusionXLPipeline",
3
+ "_diffusers_version": "0.21.0.dev0",
4
+ "force_zeros_for_empty_prompt": true,
5
+ "scheduler": [
6
+ "diffusers",
7
+ "EulerDiscreteScheduler"
8
+ ],
9
+ "text_encoder": [
10
+ "transformers",
11
+ "CLIPTextModel"
12
+ ],
13
+ "text_encoder_2": [
14
+ "transformers",
15
+ "CLIPTextModelWithProjection"
16
+ ],
17
+ "tokenizer": [
18
+ "transformers",
19
+ "CLIPTokenizer"
20
+ ],
21
+ "tokenizer_2": [
22
+ "transformers",
23
+ "CLIPTokenizer"
24
+ ],
25
+ "unet": [
26
+ "diffusers",
27
+ "UNet2DConditionModel"
28
+ ],
29
+ "vae": [
30
+ "diffusers",
31
+ "AutoencoderKL"
32
+ ]
33
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "EulerDiscreteScheduler",
3
+ "_diffusers_version": "0.21.0.dev0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "interpolation_type": "linear",
9
+ "num_train_timesteps": 1000,
10
+ "prediction_type": "epsilon",
11
+ "sample_max_value": 1.0,
12
+ "set_alpha_to_one": false,
13
+ "skip_prk_steps": true,
14
+ "steps_offset": 1,
15
+ "timestep_spacing": "leading",
16
+ "trained_betas": null,
17
+ "use_karras_sigmas": false
18
+ }
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.26.0",
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:0c055a60adab406b88992676cc0d44f010f6c8e2e5d2bea00fa886232d23aa1a
3
+ size 246144864
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.26.0",
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:bcbb7eeb5c3205b9d3cbaf8ee77e8c3c22fc23810065a564c23807174959a27c
3
+ size 1389382880
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,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
+ }
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,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": "laion/CLIP-ViT-bigG-14-laion2B-39B-b160k",
23
+ "pad_token": "!",
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
+ }
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,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.21.0.dev0",
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
+ "dual_cross_attention": false,
33
+ "encoder_hid_dim": null,
34
+ "encoder_hid_dim_type": null,
35
+ "flip_sin_to_cos": true,
36
+ "freq_shift": 0,
37
+ "in_channels": 4,
38
+ "layers_per_block": 2,
39
+ "mid_block_only_cross_attention": null,
40
+ "mid_block_scale_factor": 1,
41
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
42
+ "norm_eps": 1e-05,
43
+ "norm_num_groups": 32,
44
+ "num_attention_heads": null,
45
+ "num_class_embeds": null,
46
+ "only_cross_attention": false,
47
+ "out_channels": 4,
48
+ "projection_class_embeddings_input_dim": 2816,
49
+ "resnet_out_scale_factor": 1.0,
50
+ "resnet_skip_time_act": false,
51
+ "resnet_time_scale_shift": "default",
52
+ "sample_size": 128,
53
+ "time_cond_proj_dim": null,
54
+ "time_embedding_act_fn": null,
55
+ "time_embedding_dim": null,
56
+ "time_embedding_type": "positional",
57
+ "timestep_post_act": null,
58
+ "transformer_layers_per_block": [
59
+ 1,
60
+ 2,
61
+ 10
62
+ ],
63
+ "up_block_types": [
64
+ "CrossAttnUpBlock2D",
65
+ "CrossAttnUpBlock2D",
66
+ "UpBlock2D"
67
+ ],
68
+ "upcast_attention": null,
69
+ "use_linear_projection": true
70
+ }
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b77a6dd55b6e068b2ad2e99fc0961366ecd8cf922e3615aaf7ea0b06a5e6b73
3
+ size 5135149760
vae/config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.21.0.dev0",
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
+ "force_upcast": true,
18
+ "in_channels": 3,
19
+ "latent_channels": 4,
20
+ "layers_per_block": 2,
21
+ "norm_num_groups": 32,
22
+ "out_channels": 3,
23
+ "sample_size": 1024,
24
+ "scaling_factor": 0.13025,
25
+ "up_block_types": [
26
+ "UpDecoderBlock2D",
27
+ "UpDecoderBlock2D",
28
+ "UpDecoderBlock2D",
29
+ "UpDecoderBlock2D"
30
+ ]
31
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7727b5494a1ec3bf57b86c9d0a0f0cb266fba42e6be2840775a6e7347e5a2e5
3
+ size 167335342