nakayama commited on
Commit
b27f615
1 Parent(s): 76a7183

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +107 -25
README.md CHANGED
@@ -7,49 +7,131 @@ tags:
7
  - safetensors
8
  datasets: nakayama/DeDeDeDataset
9
  ---
10
- # このリポジトリについて
11
- [Honyarara](https://huggingface.co/nakayama/Honyarara)にライセンス上問題のないモデルをマージした結果を置いている場所になります。
12
- 現在こちらに置かれているマージモデルは以下となります。
13
- + HonyararaBx0.75+wd-1-5-beta2-aesthetic-fp32x0.25(c783be929e)
14
- + HonyararaBx0.5+wd-1-5-beta2-aesthetic-fp32x0.5(1b5cae839c)
15
- + HonyararaBx0.25+wd-1-5-beta2-aesthetic-fp32x0.75(78ec7b1589)
16
- + HonyararaB+_wd-1-5-beta2-aesthetic-fp32-wd-1-5-beta2-fp32_x0.25(9230f70807)
17
- + HonyararaB+_wd-1-5-beta2-aesthetic-fp32-wd-1-5-beta2-fp32_x0.5(0a25b1a835)
18
- + HonyararaMix0a25b1a835 x 0.5 + Replicant-V1.0 x 0.5(6192039f15)
19
 
20
  # 例
21
- <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image01.png" style="max-width:1000px;" width="100%"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  ```
24
- best quality, masterpiece, newest, exceptional, anime 1girl wearing frill dress and sitting down on couch
25
- Negative prompt: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name
26
- Steps: 11, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 3979682088, Size: 768x1152, Clip skip: 2, ENSD: 31337
27
  ```
28
 
29
- <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image02.png" style="max-width:1000px;" width="100%"/>
30
 
31
  ```
32
- best quality, masterpiece, newest, exceptional, anime 1girl running in morning park wearing sports wear
33
- Negative prompt: nfixer, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name
34
- Steps: 11, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 4274023929, Size: 768x1152, Clip skip: 2, ENSD: 31337
35
  ```
36
 
37
- <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image03.png" style="max-width:1000px;" width="100%"/>
38
 
39
  ```
40
- (((best quality, masterpiece, expectional, new, newest))) detailed anime style of handsome 1boy get a gun
41
- Negative prompt: nfixer, 3d, flat shading, flat color, extra digits
42
- Steps: 50, Sampler: DDIM, CFG scale: 9, Seed: 1895572562, Size: 768x1152, Clip skip: 2, ENSD: 31337
43
  ```
44
 
45
- <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image04.png" style="max-width:1000px;" width="100%"/>
 
 
 
 
 
 
 
 
 
 
46
 
47
  ```
48
- newest, masterpiece, exceptional, anime game cg of samurai old man, fighting pose, dynamic angle with detailed pink hair and detailed yellow eye and beautiful iris in japanese background
49
- Negative prompt: nfixer, flat shading, flat shadow, inaccurate limb, bad hands, missing fingers, extra digit, fewer digits
50
- Steps: 16, Sampler: DPM++ SDE Karras, CFG scale: 9, Seed: 3688315805, Size: 768x1152, Clip skip: 2, ENSD: 31337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ```
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  # ライセンスについて
54
 
55
  Fair AI Public License 1.0-SD (https://freedevproject.org/faipl-1.0-sd/)
 
7
  - safetensors
8
  datasets: nakayama/DeDeDeDataset
9
  ---
10
+ # ご利用の際は下記のライセンス内容を十分にご確認ください。
11
+ HonyararaMixはアニメ調の人物を出力しやすいように調整されたStable Diffusion 2.1 解像度768対応版モデルです。
12
+ ベースモデルの[Illuminati Diffusion 1.0](https://huggingface.co/IlluminatiAI/Illuminati_Diffusion_v1.0)へ[Waifu Diffusion 1.5 Beta](https://huggingface.co/waifu-diffusion/wd-1-5-beta) 、[Waifu Diffusion 1.5 Beta2](https://huggingface.co/waifu-diffusion/wd-1-5-beta2)、[Replicant-V1.0](https://huggingface.co/gsdf/Replicant-V1.0)、[Stable Diffusion 2.1](https://huggingface.co/stabilityai/stable-diffusion-2-1)を用いマージしたものをベースに
13
+ [DeDeDeDataset](https://huggingface.co/datasets/nakayama/DeDeDeDataset)による学習などを行い調整したものです。
14
+
15
+ 旧HonyararaMixにはライセンス上の問題があったため、それらを解決したモデルになります。
16
+
17
+ Prompt/Bad Promptについては、ベースモデルとなった二種のモデルが用意した文書の内容、およびTI Embeddingがこのモデルでも作用します。
18
+ WDについては[こちら](https://cafeai.notion.site/WD-1-5-232cfa9443fc4661b469e7d1df8b7dd8)を参照。Illuminati DiffusionについてはNfixerが割とよく効く印象です。
19
 
20
  # 例
21
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image01.png" style="max-width:1000px;" width="75%"/>
22
+
23
+ ```
24
+ best quality, masterpiece, great nature and secret garden with anime 1girl with twintail green hair and green eye and beautiful iris and (((from behind)))
25
+ Negative prompt: nfixer,3d, flat shading, flat shadow, bad anatomy, bad hands, missing fingers, extra digit, fewer digits looking at viewer
26
+ Steps: 28, Sampler: DDIM, CFG scale: 9, Seed: 43662843, Size: 768x512, Denoising strength: 0.7, Clip skip: 2, ENSD: 31337, Hires upscale: 1.5, Hires steps: 25, Hires upscaler: Latent
27
+ ```
28
+
29
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image02.png" style="max-width:1000px;" width="75%"/>
30
+
31
+ ```
32
+ newest, masterpiece, exceptional, anime game cg of cute cute cute 1girl sitting on a bench in harajuku park with detailed wavy pink hair pink and detailed yellow hair
33
+ Negative prompt: nfixer, 3d, flat shading, flat shadow, inaccurate limb, bad hands, missing fingers, extra digit, fewer digits
34
+ Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 7.5, Seed: 3241266003, Size: 768x1152, Clip skip: 2, ENSD: 31337
35
+ ```
36
+
37
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image03.png" style="max-width:1000px;" width="75%"/>
38
+
39
+ ```
40
+ newest, masterpiece, exceptional, anime game cg of kawaii samurai 1girl, fighting form and (((intricate hands))), fist and dynamic angle with detailed pink hair and detailed yellow eye and beautiful iris in japanese background
41
+ Negative prompt: nfixer, 3d, flat shading, flat shadow, ((bad hands, missing fingers, extra digit, fewer digits))
42
+ Steps: 16, Sampler: DPM++ SDE Karras, CFG scale: 7.5, Seed: 3429333130, Size: 768x1152, Clip skip: 2, ENSD: 31337
43
+ ```
44
+
45
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image04.png" style="max-width:1000px;" width="75%"/>
46
+
47
+ ```
48
+ ((masterpiece, best quality)),best aesthetic, 1girl, solo, black skirt, blue eyes, guitar, headphones, instrument, long hair, music, one side up, pink hair, playing guiter, pleated skirt, black shirt, indoors
49
+ Negative prompt: nfixer,missing finger, extra digits, fewer digits,((mutated hands and fingers)), 3d, flat shadow
50
+ Steps: 16, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 3730425302, Size: 1152x768, Clip skip: 2, ENSD: 31337
51
+ ```
52
+
53
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image05.png" style="max-width:1000px;" width="75%"/>
54
 
55
  ```
56
+ best quality, masterpiece, exceptional, 1girl sitting in room ground wearing white school uniform and mini skirt and wavy detailed pink hair pink and detailed yellow eye yellow, large chest,(((look from viewer,smile)))
57
+ Negative prompt: nfixernext, 3d, flat shading, flat shadow
58
+ Steps: 25, Sampler: DDIM, CFG scale: 7, Seed: 2337880991, Size: 512x768, Denoising strength: 0.7, Clip skip: 2, ENSD: 31337, Hires upscale: 1.5, Hires steps: 25, Hires upscaler: Latent
59
  ```
60
 
61
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image06.png" style="max-width:1000px;" width="75%"/>
62
 
63
  ```
64
+ newest, masterpiece, exceptional, anime game cg of teenage 1boy wizard bust shot casting fire magic spell in New York City, detailed eye and beautiful iris,picturesque, golden hour, dynamic pose
65
+ Negative prompt: nfixer, 3d, flat shading, flat shadow, inaccurate limb, bad hands, missing fingers, extra digit, fewer digits
66
+ Steps: 28, Sampler: Euler a, CFG scale: 7.5, Seed: 1414427875, Size: 768x1152, Clip skip: 2, ENSD: 31337
67
  ```
68
 
69
+ <img src="https://huggingface.co/nakayama/HonyararaMix/resolve/main/img/image07.png" style="max-width:1000px;" width="75%"/>
70
 
71
  ```
72
+ newest, masterpiece, exceptional, anime game cg of samurai old man, fighting pose, dynamic angle, fist with detailed pink hair and detailed yellow eye and beautiful iris in japanese background
73
+ Negative prompt: nfixer, 3d, flat shading, flat shadow, inaccurate limb, bad hands, missing fingers, extra digit, fewer digits
74
+ Steps: 28, Sampler: DDIM, CFG scale: 9, Seed: 403559970, Size: 768x1152, Clip skip: 2, ENSD: 31337
75
  ```
76
 
77
+ # マージ・学習手順について
78
+ 1. Illuminati Diffusion 1.0にWaifu Diffusion 1.5 Beta1を差分マージする
79
+ | Interpolation Method | Primary Model | Secondary Model | Tertiary Model | Merge Name |
80
+ | --- | --- | --- | --- | --- |
81
+ | Add Difference @ 0.6 | Illuminati Diffusion 1.0 | Waifu Diffusion 1.5 Beta1 | Stable Diffusion v2-1_768-ema-pruned | HonyararaMix_pre1 |
82
+
83
+ 2. HonyararaMix_pre1に対し、[自前で用意した他Diffusion Modelの出力からなる素材画像](https://huggingface.co/datasets/nakayama/DeDeDeDataset)にて学習させる
84
+ 用意の際に利用したサービス/モデルは、SD2.1、Novel AI、WD1.3/1.4、CoolJapan Diffusion 2.1、Dreamlike Photoreal 2.0。
85
+ 使用したソフトは[kohya版Fine Tuning](https://github.com/kohya-ss/sd-scripts)。
86
+ 総数は30000程、flipしたものと合わせてlearning rateは5e-6、以下の設定で学習させ、
87
+ 試行錯誤の後にepoch 2相当のものをHonyararaMix_pre2とした。
88
 
89
  ```
90
+ accelerate launch --num_cpu_threads_per_process 1 fine_tune.py
91
+ --pretrained_model_name_or_path=Honyarara_pre1.safetensors
92
+ --in_json meta_lat.json --train_data_dir=train_data
93
+ --output_dir=fine_tuned
94
+ --shuffle_caption
95
+ --train_batch_size=4
96
+ --learning_rate=5e-6
97
+ --max_train_steps=60000
98
+ --v2
99
+ --v_parameterization
100
+ --use_8bit_adam
101
+ --xformers
102
+ --mixed_precision=bf16
103
+ --save_every_n_epochs=2
104
+ --save_precision=float
105
+ --max_token_length=150
106
+ --seed=42
107
  ```
108
 
109
+ 3. Honyarara_pre1にHonyarara_pre2を加重平均でマージする
110
+ | Interpolation Method | Primary Model | Secondary Model | Merge Name |
111
+ | --- | --- | --- | --- |
112
+ | Weighted Sum @ 0.5 | HonyararaMix_pre1 | HonyararaMix_pre2 | HonyararaMix_pre3 |
113
+
114
+ 4. Honyarara AにIlluminati Diffusion 1.1を階層マージする
115
+ 使用マージ用スクリプトは[Super Merger](https://github.com/hako-mikan/sd-webui-supermerger)。
116
+ | Model: A | Model: B | Weight | Merge Name |
117
+ | --- | --- | --- | --- |
118
+ | HonyararaMix_pre3 | Illuminati Diffusion 1.1 | 0.5,0.45,0.0,0.0,0.0,0.0,0.0,0.1,0.3,0.5,0.7,0.9,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.1,0.3,0.5,0.7,0.9,1.0 | HonyararaMix_pre4|
119
+
120
+ 5. HonyararaMix_pre4にWaifu Diffusion 1.5 Beta2 Aestheticを差分マージする
121
+ | Interpolation Method | Primary Model | Secondary Model | Tertiary Model | Merge Name |
122
+ | --- | --- | --- | --- | --- |
123
+ | Add Difference @ 0.5 | HonyararaMix_pre4 | WD 1.5 Beta 2 Aesthetic | WD 1.5 Beta 2 | HonyararaMix_pre5 |
124
+
125
+ 6. HonyararaMix_pre5にReplicant-V1.0を加重平均でマージする
126
+ | Interpolation Method | Primary Model | Secondary Model | Merge Name |
127
+ | --- | --- | --- | --- |
128
+ | Weighted Sum @ 0.5 | HonyararaMix_pre5 | Replicant-V1.0 | HonyararaMix A |
129
+
130
+ 7. HonyararaMix AにHonyararaMix_pre3を加重平均でマージする
131
+ | Interpolation Method | Primary Model | Secondary Model | Merge Name |
132
+ | --- | --- | --- | --- |
133
+ | Weighted Sum @ 0.5 | HonyararaMix A | HonyararaMix_pre4 | HonyararaMix B |
134
+
135
  # ライセンスについて
136
 
137
  Fair AI Public License 1.0-SD (https://freedevproject.org/faipl-1.0-sd/)