shirayu commited on
Commit
c7e1819
1 Parent(s): 3e3543f
.markdownlint.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "MD007": {
3
+ "indent": 4
4
+ },
5
+ "commands-show-output": false,
6
+ "line-length": false,
7
+ "no-hard-tabs": false,
8
+ "no-inline-html": false
9
+ }
LICENSE ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fair AI Public License 1.0-SD
2
+
3
+ Published by the [Freedom of Development Project](https://freedevproject.org).
4
+
5
+ *This "SD variant" license contains a [Prohibited Uses](#prohibited-uses)
6
+ section designed to be compatible with Stable Diffusion's license. Because of
7
+ that section, this is not a free software license. Unless you are releasing a
8
+ derivative of a Stable Diffusion model, it is not recommended that you use this
9
+ license.*
10
+
11
+ *This license comes with special requirements if you intend to allow users
12
+ to access this software over a network. See [Notices](#notices) for more
13
+ information.*
14
+
15
+ ## Purpose
16
+ This license gives everyone as much permission to work with this software as
17
+ possible, while protecting contributors from liability, protecting the
18
+ freedom of end users, and reducing harm.
19
+
20
+ ## Definitions
21
+ In this license, "model" refers to machine learning model weights, biases,
22
+ parameters, optimizer states, and any byproducts of a training or pretraining
23
+ process, whether in the form of checkpoints or any other form.
24
+
25
+ The term "derived model" refers to any model based on this model.
26
+
27
+ The term "software" also refers to any model along with documentation or
28
+ other resources provided with the software.
29
+
30
+ The term "source code" refers to the preferred form of making modifications
31
+ to software. It also includes any models, if applicable, but it does not
32
+ include any datasets used to train a model.
33
+
34
+ To "modify" also means to perform any training on a model or to combine a
35
+ model with another model.
36
+
37
+ ## Acceptance
38
+ In order to receive this license, you must agree to its rules. The rules of
39
+ this license are both obligations under that agreement and conditions to your
40
+ license. You must not do anything with this software that triggers a rule that
41
+ you cannot or will not follow. If you do not agree, then you cannot use this
42
+ software in any way.
43
+
44
+ ## Copyright
45
+ Each contributor licenses you to do everything with this software that would
46
+ otherwise infringe that contributor's copyright in it.
47
+
48
+ ## Freedom
49
+ Neither this software nor any work that is combined with this software will be
50
+ considered a technological protection measure under the WIPO Copyright Treaty
51
+ or any similar law. Reverse engineering of this software and of any work that
52
+ is combined with this software is always allowed.
53
+
54
+ ## Notices
55
+ You must ensure that everyone who gets a copy of any part of this software from
56
+ you, with or without changes, also gets the text of this license along with
57
+ the corresponding source code.
58
+
59
+ If you modify this software and allow users to interact with it through a
60
+ computer network, you must ensure they have a reasonable way to receive the
61
+ corresponding source code from you, whether that is via a download link or a
62
+ prominent written offer. As a special case, if you are only allowing users to
63
+ interact with a derived model, then you may choose to provide a download link
64
+ or written offer only for the derived model.
65
+
66
+ This software, all source code, and all modifications must be provided under
67
+ this license or another license that allows everything this license allows.
68
+ Note that this does not give you permission to change the license for this
69
+ software.
70
+
71
+ ## Excuse
72
+ If anyone notifies you in writing that you have not complied with
73
+ [Notices](#notices), you can keep your license by taking all practical steps
74
+ to comply within 30 days after the notice. If you do not do so, your license
75
+ ends immediately.
76
+
77
+ ## Output
78
+ The output of this software is not covered by this license, and no contributor
79
+ claims any rights to it.
80
+
81
+ ## Patent
82
+ Each contributor licenses you to do everything with this software that would
83
+ otherwise infringe any patent claims they can license or become able to license.
84
+
85
+ ## Reliability
86
+ No contributor can revoke this license.
87
+
88
+ ## Alternatives
89
+ You can also use any non-model parts of this software under the terms of the
90
+ GNU AGPL 3.0, or any later version of that license. If you do,
91
+ [No Harm](#no-harm) and [No Liability](#no-liability) still apply.
92
+
93
+ ## Revisions
94
+ The Freedom of Development Project may publish revised or new versions of the
95
+ Fair AI Public License. Those new versions will be similar in spirit to this
96
+ license.
97
+
98
+ Unless a contributor specifies otherwise, you have the option of following the
99
+ terms of any later version of this license. Your choice to follow a later
100
+ version of the license will not impose additional obligations on any
101
+ contributor. Even if you do choose to follow a later version, the restrictions
102
+ of [Prohibited Uses](#prohibited-uses) will still apply.
103
+
104
+ ## Survival
105
+ The provisions of [No Harm](#no-harm) and [No Liability](#no-liability) survive
106
+ the end of your license.
107
+
108
+ ## No Harm
109
+ You agree that no contributor's conduct in the creation of this software has
110
+ caused you any harm. As far as the law allows, you give up your right to pursue
111
+ any kind of legal claim against any contributor for actions related the
112
+ creation of this software, even if those actions broke a previous agreement.
113
+
114
+ Additionally, you agree not to use this model for harmful purposes, as listed
115
+ in [Prohibited Uses](#prohibited-uses). These restrictions do not apply to
116
+ non-model parts of this software.
117
+
118
+ ## No Liability
119
+ ***As far as the law allows, this software comes as is, without any warranty or
120
+ condition, and no contributor will be liable to anyone for any damages related
121
+ to this software or this license, under any kind of legal claim.***
122
+
123
+ ## Prohibited Uses
124
+ You may not use this model or any derived model for the following:
125
+
126
+ - In any way that violates any applicable national, federal, state, local or
127
+ international law or regulation;
128
+ - For the purpose of exploiting, harming or attempting to exploit or harm
129
+ minors in any way;
130
+ - To generate or disseminate verifiably false information and/or content with
131
+ the purpose of harming others;
132
+ - To generate or disseminate personal identifiable information that can be used
133
+ to harm an individual;
134
+ - To defame, disparage or otherwise harass others;
135
+ - For fully automated decision making that adversely impacts an individual’s
136
+ legal rights or otherwise creates or modifies a binding, enforceable obligation;
137
+ - For any use intended to or which has the effect of discriminating against or
138
+ harming individuals or groups based on online or offline social behavior or
139
+ known or predicted personal or personality characteristics;
140
+ - To exploit any of the vulnerabilities of a specific group of persons based on
141
+ their age, social, physical or mental characteristics, in order to materially
142
+ distort the behavior of a person pertaining to that group in a manner that
143
+ causes or is likely to cause that person or another person physical or
144
+ psychological harm;
145
+ - For any use intended to or which has the effect of discriminating against
146
+ individuals or groups based on legally protected characteristics or categories;
147
+ - To provide medical advice and medical results interpretation;
148
+ - To generate or disseminate information for the purpose to be used for
149
+ administration of justice, law enforcement, immigration or asylum processes,
150
+ such as predicting an individual will commit fraud/crime commitment (e.g. by
151
+ text profiling, drawing causal relationships between assertions made in
152
+ documents, indiscriminate and arbitrarily-targeted use).
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ tags:
6
+ - stable-diffusion
7
+ - stable-diffusion-diffusers
8
+ - text-to-image
9
+
10
+ ---
11
+
12
+ [東北ずん子プロジェクト](https://zunko.jp/)の公式キャラクターイラストを利用して作成した
13
+ Stable Diffusion 2.1系統のLoRAファイルです.
14
+
15
+ トリガーワードとファイル名は次の通りです.
16
+
17
+ - キャラクター
18
+ - ``Itako``: 東北イタコ (衣装指定なし版)
19
+ - ``Zunko``: 東北ずん子 (衣装指定なし版)
20
+ - ``Kiritan``: 東北きりたん (衣装指定なし版)
21
+ - ``Zundamon``: ずんだもん (人間形態)
22
+ - ``Zfr``: ずんだもん (妖精形態)
23
+ - ``Anko``: 暗黒大将軍
24
+ - ``Awamo``: 沖縄あわも
25
+ - ``Awamo``: 沖縄あわも
26
+ - ``Chanko``: 大江戸ちゃんこ
27
+ - ``Hokamel``: 北海道めろん
28
+ - ``Metan``: 四国めたん
29
+ - ``Shinobi``: 関西しのび
30
+ - ``Sora``: 九州そら
31
+ - ``Usagi``: 中国うさぎ
32
+ - 公式衣装単体
33
+ - ``Itoc``: 東北イタコの公式衣装単体
34
+ - ``Zuoc``: 東北ずん子の公式衣装単体
35
+ - ``Kioc``: 東北きりたんの公式衣装単体
36
+
37
+ - 学習データに公式キャラクターイラスト以外は用いておらず,正則化画像も用いていません.
38
+ - 「東北イタコ」には「青い霊」は含まれていません
39
+ - 「東北きりたん」には「きりたん砲」は含まれていません
40
+
41
+ ## ファイルリスト
42
+
43
+ - 初版: [sd-tohoku-v3b.1](https://huggingface.co/shirayu/sd-tohoku-v3b/tree/main/sd-tohoku-v3b.1)
44
+
45
+ なお,Stable Diffusion 1.4系統のLoRAは[sd-tohoku-v3a](https://huggingface.co/shirayu/sd-tohoku-v3a)をご利用ください.
46
+
47
+ ## 利用例
48
+
49
+ 1. [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)をセットアップしてください
50
+ 2. 拡張機能[kohya-ss/sd-webui-additional-networks](https://github.com/kohya-ss/sd-webui-additional-networks)をインストールしてください
51
+ - 2023.04.02現在公式でSD2.1系統のLoRAに対応していないため
52
+ 3. お好みのSD2.1系のモデル・YAMLファイルを``models/Stable-diffusion``に,VAEをダウンロード``models/VAE``に置いてください
53
+ - [Waifu Diffusion 1.5 Beta 2](https://huggingface.co/waifu-diffusion/wd-1-5-beta2/tree/main/checkpoints)を利用する例
54
+ 1. [``wd-1-5-beta2-aesthetic-fp16.safetensors``](https://huggingface.co/waifu-diffusion/wd-1-5-beta2/resolve/main/checkpoints/wd-1-5-beta2-aesthetic-fp16.safetensors)を``models/Stable-diffusion``にダウンロードする
55
+ 2. [``wd-1-5-beta2-aesthetic-fp16.yaml``](https://huggingface.co/waifu-diffusion/wd-1-5-beta2/raw/main/checkpoints/wd-1-5-beta2-aesthetic-fp16.yaml)を``models/Stable-diffusion``にダウンロードする
56
+ 3. [``kl-f8-anime2.ckpt``](https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt)を``models/VAE``にダウンロードし,``wd-1-5-beta2-aesthetic-fp16.vae.ckpt``にリネームする (ファイル名をそろえると自動的に読み込まれるようになります)
57
+ 4. お好みのLoRAファイルを[ファイルリスト](https://huggingface.co/shirayu/sd-tohoku-v3b/tree/main)からダウンロードして``models/LORA``に置く
58
+ 5. WebUIを起動し,``Additional Networks``の設定をする
59
+ - パネルを開き``Enable``をクリック
60
+ - 設置したLoRAファイルを指定する
61
+ 6. ``トリガーワード``を含んだプロンプトを入力して生成する
62
+
63
+ プロンプトの指定には[WD 1.5 Beta 2 - Release Notes](https://cafeai.notion.site/WD-1-5-Beta-2-Release-Notes-2852db5a9cdd456ba52fc5730b91acfd)も参考にしてください
64
+
65
+ ## 生成例
66
+
67
+ <!-- ![sd-tohoku-v3b.1の生成例](examples/sd-tohoku-v3b.1.png) -->
68
+
69
+ ```txt
70
+ Positive prompt: {トリガーワード}, 1girl, smile, sit on chair, garden, (looking at viewer:1.2),
71
+ (anime:1.3), (waifu, exceptional, best aesthetic, new, newest, masterpiece, best quality:1.2)
72
+ Negative prompt: worst quality, photorealistic, oldest, old, ((bad hands)), ((mutated hands and fingers)), watermark, text
73
+ Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 1487688172, Size: 768x1024, Model hash: 96fc8b5de4
74
+ ```
75
+
76
+ ## ライセンス
77
+
78
+ WD 1.5 Beta 2と同様に[Fair AI Public License 1.0-SD](https://freedevproject.org/faipl-1.0-sd/)です.
79
+
80
+ また,各種法令・各種ガイドラインにご留意ください.
81
+ 例えば,生成された画像が東北ずん子プロジェクトのキャラクターを含む場合,
82
+ [「東北ずん子プロジェクト キャラクター利用の手引き」](https://zunko.jp/guideline.html)に基づいて利用してください.
83
+
84
+ ## 以前のバージョンとの違い
85
+
86
+ [shirayu/sd-tohoku-v1](https://huggingface.co/shirayu/sd-tohoku-v1)や
87
+ [shirayu/sd-tohoku-v2](https://huggingface.co/shirayu/sd-tohoku-v2)では
88
+ Stable Diffusionモデル自体を更新していました.
89
+ そのため,ファイルサイズが巨大という課題がありました.
90
+ その後,LoRA (Low-Rank Adaptation)という既存のモデルにくっつける「追加回路」を学習する技術が利用できるようになり,
91
+ 先程の問題は大幅に軽減されるようになりました.
92
+
93
+ この「追加回路」は学習時に使われるモデルだけでなく,「似ている」モデルにも適用可能です.
94
+ この学習では[Waifu Diffusion 1.5 Beta 2](https://huggingface.co/waifu-diffusion/wd-1-5-beta2/tree/main/checkpoints)を学習時に使用しています.
95
+ そのため. Stable Diffusion 2.1系統のモデルで利用できます.
96
+ ただし,大幅にチューニングされているモデルでは良い結果は得られない可能性が高くなります.
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Anko.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5901e21dabfe73622ae73a8a2983602046ded2b159a1e34d5e7ddfebcc878fd7
3
+ size 54929459
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Awamo.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ad472431def79da702db8536f198320fc435e7b54665e166231e075a8749607
3
+ size 54930167
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Chanko.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb72f1d4cd02dfdce21ea5af2c7c8bd8b95817c895ff100935338dbde7e94f14
3
+ size 54930671
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Hokamel.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b890e58620b41edd4dbe92f0a89f2493598a70e8d923ffab20514bb5d01a0c11
3
+ size 54930401
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Itako.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53da8d9bca50b87b2b9768538e6f21fd1dfac9a00ae113af1b96bd2f5e797661
3
+ size 54932894
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Itoc.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8d642aeb9f41daf120bdd3177f450e1787ab3564202cd810d40ab01f07deec
3
+ size 54930156
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Kioc.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a44105817f55279cd858009a847f7a5d6425869947722747691514525cf24cd8
3
+ size 54930462
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Kiritan.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bb67f9b099a6b089440f422221183b4ec481463ecc7d4bdfbc7b749c3d9a285
3
+ size 54933959
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Metan.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:361891400767140ad8ce058138d09633a1842a2562e5312c12deb6af0055ea6d
3
+ size 54932008
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Shinobi.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:647801d155803f350d59be80d40d36c9806a84a58a358a20846fe682e984f02a
3
+ size 54930620
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Sora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efbf1c230eef55c7dc23c8dd70c67cd77b734a871364c59103a411a55314309e
3
+ size 54930945
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Usagi.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de6f5b2ddbdbb3ddc753084c604dc428bd9d483341beebf25d5ca465024b69b3
3
+ size 54929991
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Zfr.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31c6a07d1db3c5903b29d90f1439a5e0cc83faf90148de5651d4a6738d36c699
3
+ size 54929768
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Zundamon.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9543c9d7f725f21eb55001c09ba5ccfa758500c2968ab99fc4aaafa505dcf3c0
3
+ size 54930496
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Zunko.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b44fde518d358615d3e3499abb99086d110c26fef4e206779fa65c20df78302
3
+ size 54932680
sd-tohoku-v3b.1/sd-tohoku-v3b.1.Zuoc.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d2b9e1850cf5fef098d0b2f3c0293f700b66b25a260993c8b2a8e9747694850
3
+ size 54931422