flyfront commited on
Commit
032183d
·
verified ·
1 Parent(s): 0d0ed7c

FFF_MOSS-Alba-style v1: style LoRA, model card, samples

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ samples/classroom.png filter=lfs diff=lfs merge=lfs -text
37
+ samples/street.png filter=lfs diff=lfs merge=lfs -text
FFF_MOSS-Alba-style-v1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e54872c45dcb4025777cd5def4dba269739e53a388f881f7b2662b219ca9a08
3
+ size 74406432
FFF_MOSS-Alba-style-v1.safetensors.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 4e54872c45dcb4025777cd5def4dba269739e53a388f881f7b2662b219ca9a08 *FFF_MOSS-Alba-style-v1.safetensors
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 [yyyy] [name of copyright owner]
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.
README.md ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - OpenMOSS-Team/MOSS-Image-Base
5
+ base_model_relation: adapter
6
+ pipeline_tag: text-to-image
7
+ tags:
8
+ - moss-image
9
+ - lora
10
+ - anime
11
+ - style
12
+ - text-to-image
13
+ - safetensors
14
+ language:
15
+ - en
16
+ - ja
17
+ ---
18
+
19
+ # FFF_MOSS-Alba-style v1
20
+
21
+ A style LoRA for [MOSS-Image](https://github.com/OpenMOSS/MOSS-Image). It puts the look of [FFF_ANIMA-Alba](https://huggingface.co/flyfront/FFF_ANIMA-Alba) (soft shading, warm skin, clear eyes) on the people in the picture and leaves MOSS-Image's backgrounds as they are.
22
+
23
+ [MOSS-Image](https://github.com/OpenMOSS/MOSS-Image) 用の画風 LoRA です。人物に [FFF_ANIMA-Alba](https://huggingface.co/flyfront/FFF_ANIMA-Alba) の画風(柔らかい塗り、暖かい肌、はっきりした瞳)を乗せ、背景は MOSS-Image のまま残します。
24
+
25
+ ## Samples
26
+
27
+ <table>
28
+ <tr>
29
+ <td align="center" valign="middle" width="50%"><img src="samples/classroom.png" alt="classroom" width="400"></td>
30
+ <td align="center" valign="middle" width="50%"><img src="samples/street.png" alt="street" width="400"></td>
31
+ </tr>
32
+ </table>
33
+
34
+ Both samples: MOSS-Image SFT + this LoRA at 1.0, tags only, Euler, 25 steps, 1344x1792. Left: CFG 3. Right: CFG 5. Prompts, negative prompts and seeds are in the PNG metadata.
35
+
36
+ 生成例は 2 枚とも MOSS-Image SFT + この LoRA(1.0)、タグだけのプロンプト、Euler、25 steps、1344x1792 です。左は CFG 3、右は CFG 5。プロンプト・ネガティブ・seed は PNG のメタデータにあります。
37
+
38
+ ## Quick start
39
+
40
+ ```
41
+ @fyfnt, <your tags> <lora:FFF_MOSS-Alba-style-v1:1>
42
+ ```
43
+
44
+ Negative prompt:
45
+
46
+ ```
47
+ nsfw, worst quality, bad anatomy, watermark, jpeg artifact, blush, embarrassed
48
+ ```
49
+
50
+ MOSS-Image SFT (the INT8 ConvRot file is fine), Euler, MOSS scheduler (shift 5), 25-30 steps, CFG 3 to 6, around 1M to 2.4M pixels (896x1152 to 1344x1792). No quality tags are needed.
51
+
52
+ MOSS-Image SFT(INT8 ConvRot 版で可)、Euler、MOSS スケジューラ(shift 5)、25~30 steps、CFG 3~6、100 万~240 万画素(896x1152~1344x1792)。品質タグは要りません。
53
+
54
+ ## How to use it
55
+
56
+ **Base or SFT.** The LoRA was trained on MOSS-Image Base and works on both. SFT gives warmer colors, more saturation and richer backgrounds; Base gives a calmer, cooler palette closer to the teacher. The samples use SFT.
57
+
58
+ **Trigger is optional.** The style comes through with or without `@fyfnt`. With it, eyes are a little larger and the face is closer to the teacher; without it, the face is a little more settled. Use whichever you prefer.
59
+
60
+ **CFG picks the finish.** CFG 3 gives soft shading with gentle gradients. Around 6 the look turns toward cel shading with stronger lines and more saturation. 7 and above starts to crush dark areas.
61
+
62
+ **Blush.** MOSS-Image SFT likes to blush. `blush, embarrassed` in the negative prompt removes it without changing anything else; write `light blush` or `blush` in the prompt when you want it (and drop them from the negative).
63
+
64
+ **Weight stays at 1.0.** Lowering the weight brings back SFT's own habits (blush, cleavage) rather than softening the style.
65
+
66
+ **Color words spread.** MOSS-Image reads tags as context, so `white dress` can also lighten hair, skin and the whole picture. Balance a white outfit with a hair color or a darker room, or let one dark garment anchor the palette. Name the hair color when you want it fixed; otherwise it drifts between black and silver.
67
+
68
+ **Distilled LoRAs.** Works together with the 8-step DMD, 4-step and 2-step LoRAs at 1.0 each (8-step is the best trade). At CFG 1 the negative prompt is not evaluated, so use [sd-forge-negpip](https://github.com/flyfront/sd-forge-negpip) (MOSS-Image support) and write `(blush:-1.0), (embarrassed:-1.0)` in the positive prompt instead.
69
+
70
+ **Hands.** Fingers can come out simplified, as with other style LoRAs on MOSS-Image. ADetailer-style hand fixing helps. Keep pose words to one per kind (distance, angle, posture) so the model is not asked for an impossible pose.
71
+
72
+ **Backgrounds.** Nothing to add: the LoRA was trained with the background masked out, so `detailed background` and similar tags make no difference and MOSS-Image draws the scene the way it always does.
73
+
74
+ ## 使い方
75
+
76
+ **Base でも SFT でも。** MOSS-Image Base で学習した LoRA ですが、どちらにも効きます。SFT は暖色で彩度が高く背景の描き込みが多め、Base は落ち着いた寒色寄りで教師に近い色味です。生成例は SFT です。
77
+
78
+ **trigger は任意。** `@fyfnt` があってもなくても画風は出ます。付けると瞳が少し大きく教師寄りの顔、外すと少し落ち着いた顔立ちになります。
79
+
80
+ **CFG で仕上がりを選ぶ。** 3 は柔らかい塗りで階調が残ります。6 前後でセル調に寄り、線が強く彩度が上がります。7 以上は暗部が潰れ始めます。
81
+
82
+ **赤面。** MOSS-Image SFT は赤面しがちです。ネガティブに `blush, embarrassed` を入れると他を変えずに消えます。赤面させたいときはプロンプトに `light blush` か `blush` を書き、ネガから外してください。
83
+
84
+ **倍率は 1.0 のまま。** 下げると画風が薄まるより先に SFT 自身の癖(赤面、胸元)が戻ります。
85
+
86
+ **色の語は全体に広がる。** MOSS-Image はタグを文脈として読むので、`white dress` が髪や肌、画面全体まで白っぽくします。白い服のときは髪色や暗い部屋で釣り合いを取るか、濃い色の服を 1 つ置いてください。髪色は書かないと黒と銀の間で揺れます。固定したいときは書きます。
87
+
88
+ **蒸留 LoRA との併用。** 8-step DMD、4-step、2-step の各 LoRA と両方 1.0 で重ねられます(8-step が釣り合いがよい)。CFG 1 ではネガティブが評価されないので、[sd-forge-negpip](https://github.com/flyfront/sd-forge-negpip)(MOSS-Image 対応)で正のプロンプトに `(blush:-1.0), (embarrassed:-1.0)` と書いてください。
89
+
90
+ **手。** MOSS-Image に画風 LoRA を当てたときの常で、指が簡略になることがあります。ADetailer 系の手の補正が効きます。ポーズの語は種類ごと(距離・角度・体勢)に 1 つずつにして、無理な体勢を頼まないのがこつです。
91
+
92
+ **背景。** 足す語はありません。背景をマスクして学習しているので、`detailed background` などの有無で絵は変わらず、MOSS-Image がいつもどおり描きます。
93
+
94
+ ## Files
95
+
96
+ | File | Size | SHA256 |
97
+ |---|---|---|
98
+ | `FFF_MOSS-Alba-style-v1.safetensors` | 74.4 MB | `4e54872c45dcb4025777cd5def4dba269739e53a388f881f7b2662b219ca9a08` |
99
+
100
+ LoRA on the DiT only (dim 16, alpha 1, all 42 blocks), sd-scripts key layout (`lora_unet_layers_*`). Loads as-is in Forge Neo and ComfyUI; no text encoder weights are included.
101
+
102
+ DiT だけの LoRA(dim 16、alpha 1、42 block 全部)、sd-scripts のキー形式(`lora_unet_layers_*`)。Forge Neo と ComfyUI でそのまま読めます。text encoder の重みは含みません。
103
+
104
+ ## Training
105
+
106
+ Trained with [sd-scripts](https://github.com/kohya-ss/sd-scripts) (`moss_image_train_network.py`) on MOSS-Image Base, with the Qwen3.5-9B text encoder frozen. The teacher set is 1,457 images generated with FFF_ANIMA-Alba, captioned with the tags they were generated from. The loss was masked to the people in each image (background weight 0, hands excluded), so only the character rendering is learned. 1024-pixel buckets, 3 epochs (6,348 steps), LR 1e-4, AdamW8bit, constant schedule.
107
+
108
+ [sd-scripts](https://github.com/kohya-ss/sd-scripts)(`moss_image_train_network.py`)で MOSS-Image Base を起点に学習し、Qwen3.5-9B の text encoder は凍結しました。教師は FFF_ANIMA-Alba で生成した 1,457 枚で、caption は生成に使ったタグです。loss は人物の領域だけに掛け(背景の重み 0、手は除外)、キャラクターの描き方だけを学ばせています。1024 画素のバケット、3 epoch(6,348 step)、LR 1e-4、AdamW8bit、constant。
109
+
110
+ ## About this repository
111
+
112
+ This is the MOSS-Image branch of the FFF_ANIMA-Alba series. A full fine-tune of MOSS-Image on the same teacher may be added here later under the name `FFF_MOSS-Alba`; the LoRA keeps the `-style` suffix.
113
+
114
+ FFF_ANIMA-Alba シリーズの MOSS-Image 版です。同じ教師で MOSS-Image を full fine-tune したモデルを、将来 `FFF_MOSS-Alba` の名前でここに足すかもしれません。LoRA は `-style` 付きの名前のままです。
115
+
116
+ ## License
117
+
118
+ Apache License 2.0 (`LICENSE`), the same as the MOSS-Image weights. The teacher images were generated with FFF_ANIMA-Alba, whose license (CircleStone Labs Non-Commercial License v1.2) places no restriction on the use of generated images, so nothing from that license carries over to this LoRA. Generated images are yours.
119
+
120
+ Apache License 2.0(`LICENSE`)。MOSS-Image の重みと同じです。教師画像は FFF_ANIMA-Alba で生成したもので、その license(CircleStone Labs Non-Commercial License v1.2)は生成画像の利用を制限していないため、この LoRA には引き継がれません。生成した画像は利用者のものです。
121
+
122
+ Civitai page: (to be added)
samples/classroom.png ADDED

Git LFS Details

  • SHA256: f78d6d8b989ae9ac045cc8693c2fdf2ef3d6762f07fc7164326341e4126632d9
  • Pointer size: 132 Bytes
  • Size of remote file: 2.64 MB
samples/street.png ADDED

Git LFS Details

  • SHA256: cbd7e6dec8d6d3ac3565f5e70609a3094bd7fdb3362bc63370af1ec801665d40
  • Pointer size: 132 Bytes
  • Size of remote file: 3.97 MB