Update README.md
Browse files
README.md
CHANGED
@@ -6,197 +6,108 @@ language:
|
|
6 |
|
7 |
# webbigdata/FanFic-Illustrator
|
8 |
|
9 |
-
FanFic-Illustratorは二次創作したショートストーリー(日本語、英語、他)に挿絵用の画像生成AI
|
10 |
-
FanFic-Illustrator is a model for creating prompts for image generation AI to create illustrations for fan-created short stories (Japanese, English, etc.)
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
詳細は後日記入予定
|
23 |
-
More details to be added later.
|
24 |
-
|
25 |
-
- **Developed by:** webbigdata
|
26 |
-
- **Model type:** text generation
|
27 |
-
- **Language(s) (NLP):** Japanese, English
|
28 |
-
- **Finetuned from model [optional]:** Qwen 2.5 3B Instruct
|
29 |
-
|
30 |
-
### Model Sources [optional]
|
31 |
-
|
32 |
-
<!-- Provide the basic links for the model. -->
|
33 |
-
|
34 |
-
- **Repository:** https://huggingface.co/webbigdata/FanFic-Illustrator/
|
35 |
-
- **Demo** [Sample Colab Script](https://github.com/webbigdata-jp/python_sample/blob/main/FanFic_Illustrator_demo.ipynb)
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
## Uses
|
40 |
-
|
41 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
42 |
-
|
43 |
-
### Direct Use
|
44 |
-
|
45 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
46 |
-
|
47 |
-
[More Information Needed]
|
48 |
-
|
49 |
-
### Downstream Use [optional]
|
50 |
-
|
51 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
52 |
-
|
53 |
-
[More Information Needed]
|
54 |
-
|
55 |
-
### Out-of-Scope Use
|
56 |
-
|
57 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
58 |
-
|
59 |
-
[More Information Needed]
|
60 |
-
|
61 |
-
## Bias, Risks, and Limitations
|
62 |
-
|
63 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
64 |
-
|
65 |
-
[More Information Needed]
|
66 |
-
|
67 |
-
### Recommendations
|
68 |
-
|
69 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
70 |
-
|
71 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
72 |
-
|
73 |
-
## How to Get Started with the Model
|
74 |
-
|
75 |
-
Use the code below to get started with the model.
|
76 |
-
|
77 |
-
[More Information Needed]
|
78 |
|
79 |
-
|
|
|
80 |
|
81 |
-
|
|
|
82 |
|
83 |
-
|
84 |
|
85 |
-
|
|
|
86 |
|
87 |
-
|
|
|
|
|
88 |
|
89 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
90 |
|
91 |
-
|
92 |
|
93 |
-
|
94 |
|
|
|
|
|
95 |
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
|
|
|
99 |
|
100 |
-
|
101 |
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
-
|
|
|
105 |
|
106 |
-
|
|
|
107 |
|
108 |
-
|
|
|
|
|
109 |
|
110 |
-
|
|
|
111 |
|
112 |
-
|
|
|
113 |
|
114 |
-
|
|
|
115 |
|
116 |
-
|
|
|
117 |
|
118 |
-
|
|
|
|
|
119 |
|
120 |
-
|
121 |
|
122 |
-
|
123 |
|
124 |
-
|
|
|
|
|
125 |
|
126 |
-
|
|
|
127 |
|
128 |
-
[More Information Needed]
|
129 |
|
130 |
-
###
|
131 |
|
132 |
-
[
|
133 |
-
|
134 |
-
#### Summary
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
## Model Examination [optional]
|
139 |
-
|
140 |
-
<!-- Relevant interpretability work for the model goes here -->
|
141 |
-
|
142 |
-
[More Information Needed]
|
143 |
-
|
144 |
-
## Environmental Impact
|
145 |
-
|
146 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
147 |
-
|
148 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
149 |
-
|
150 |
-
- **Hardware Type:** [More Information Needed]
|
151 |
-
- **Hours used:** [More Information Needed]
|
152 |
-
- **Cloud Provider:** [More Information Needed]
|
153 |
-
- **Compute Region:** [More Information Needed]
|
154 |
-
- **Carbon Emitted:** [More Information Needed]
|
155 |
-
|
156 |
-
## Technical Specifications [optional]
|
157 |
-
|
158 |
-
### Model Architecture and Objective
|
159 |
-
|
160 |
-
[More Information Needed]
|
161 |
-
|
162 |
-
### Compute Infrastructure
|
163 |
-
|
164 |
-
[More Information Needed]
|
165 |
-
|
166 |
-
#### Hardware
|
167 |
-
|
168 |
-
[More Information Needed]
|
169 |
-
|
170 |
-
#### Software
|
171 |
-
|
172 |
-
[More Information Needed]
|
173 |
-
|
174 |
-
## Citation [optional]
|
175 |
-
|
176 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
177 |
-
|
178 |
-
**BibTeX:**
|
179 |
-
|
180 |
-
[More Information Needed]
|
181 |
-
|
182 |
-
**APA:**
|
183 |
-
|
184 |
-
[More Information Needed]
|
185 |
-
|
186 |
-
## Glossary [optional]
|
187 |
-
|
188 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
189 |
-
|
190 |
-
[More Information Needed]
|
191 |
-
|
192 |
-
## More Information [optional]
|
193 |
-
|
194 |
-
[More Information Needed]
|
195 |
|
196 |
-
## Model Card Authors [optional]
|
197 |
|
198 |
-
[More Information Needed]
|
199 |
|
200 |
-
|
|
|
|
|
|
|
201 |
|
202 |
-
[More Information Needed]
|
|
|
6 |
|
7 |
# webbigdata/FanFic-Illustrator
|
8 |
|
9 |
+
FanFic-Illustratorは二次創作したショートストーリー(日本語、英語、他)に挿絵用の画像生成AI用プロンプトを作成する3Bモデルです
|
10 |
+
FanFic-Illustrator is a 3B model for creating prompts for image generation AI to create illustrations for fan-created short stories (Japanese, English, etc.)
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
+
入力として、コンテンツカテゴリ、シリーズ名、キャラクター名、テキスト(オリジナル/ファン小説)、利用可能なタグを与えると、思考の過程と画像生成AI用のプロンプト(Danbooruタグ)を出力する推論モデルです。
|
17 |
+
指定されたタグを使って適切な推測を行おうとします。そのため、出力カテゴリ/傾向を大まかに制御できます。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
This is an reasoning model that takes content category, series name, character name, text (original/fanfiction), and available tags as input and outputs thought process and prompts (Danbooru tags) for image generation AI.
|
20 |
+
It tries to make a good guess using the tags you provide, so you can roughly control the output category/tendency.
|
21 |
|
22 |
+
画像生成モデルは[cagliostrolab/animagine-xl-4.0 opt](https://huggingface.co/cagliostrolab/animagine-xl-4.0)に最適化してあります
|
23 |
+
The image generation model is optimized for [cagliostrolab/animagine-xl-4.0 opt](https://huggingface.co/cagliostrolab/animagine-xl-4.0).
|
24 |
|
25 |
+
### Supported languages
|
26 |
|
27 |
+
日本語、英語、中国語(繁体字)を入力としてトレーニングをしています
|
28 |
+
おそらくqwen 2.5が対応している言語であれば他の言語でも動作するのではないかと思います。
|
29 |
|
30 |
+
Training is done using Japanese, English, and Chinese (traditional characters) as input.
|
31 |
+
The output language of the thought process is Japanese only.
|
32 |
+
I think it will probably work with other languages that are supported by qwen 2.5.
|
33 |
|
|
|
34 |
|
35 |
+
### prompt template
|
36 |
|
37 |
+
#### Input prompt template/入力テンプレート
|
38 |
|
39 |
+
以下のように日本語で与える必要があります。
|
40 |
+
It must be given in Japanese as follows:
|
41 |
|
42 |
+
```
|
43 |
+
### 小説のコン��キストを補足する情報
|
44 |
+
content category: {category}
|
45 |
+
series name: {series_name}
|
46 |
+
series description: {series_name} series
|
47 |
+
character name: {character_name}
|
48 |
+
character description: {character_name} from {series_name}
|
49 |
|
50 |
+
### 小説データ
|
51 |
+
{novel_text}
|
52 |
|
53 |
+
まず以下のように思考を整理します。
|
54 |
|
55 |
+
concept: イラストのコンセプトを考えます。小説の内容から主題、設定、雰囲気を理解し、どのようなイラストが最も適切か、全体の構成を考えます
|
56 |
+
- 人数: 挿絵の中に登場させる人数を考えます。作品に登場する人物の数や重要性を考慮し、メインで描くべき人物やサブキャラクターについても検討してください
|
57 |
+
- キャラクター名/シリーズ名: 既存作品のキャラクター/シリーズか、オリジナル作品かを考えます。既存作品の場合は、原作の設定や特徴を尊重した表現方法も考慮してください
|
58 |
+
- ポーズ/構図: ポーズ/構図指定に使うタグを考えます。物語の場面において、キャラクターがどのような体勢/状況にあるのか、どのアングルから描くと効果
|
59 |
+
的かを検討してください
|
60 |
+
- 背景/環境: 背景/環境指定に使うタグを考えます。物語の舞台設定や時間帯、天候など、雰囲気を表現するために必要な背景要素を詳しく考えてください
|
61 |
+
- 描画スタイル/テクニック: 描画スタイル/テクニックに使うタグを考えます。物語のジャンルや雰囲気に合わせて、どのような画風や技法が適しているかを検討してください
|
62 |
+
- 身体的特徴/画面上の物体: 身体的特徴/画面上の物体に関連するタグを考えます。キャラクターの外見的特徴や、シーンに必要な小道具、アイテムなどを詳細に考えてください
|
63 |
|
64 |
+
改行の場所も含めて、この順序と書式を厳密に守ってください。
|
65 |
+
各項目は上記の順序と書式で記述してください。具体的かつ詳細に説明し、十分な長さで考察してください(タグ全体で600-800文字程度が望ましいです)
|
66 |
|
67 |
+
その後、思考結果に基づき内に英単語を18単語ほどカンマで区切って出力してください。キャラクター名/シリーズ名は指定されていたら必ず含めます。
|
68 |
+
日本語は使用しないでください。 最も重要で適切なタグを選び、有効なプロンプトとなるよう考慮してください
|
69 |
|
70 |
+
### 使用可能な英単語
|
71 |
+
出力時には以下のタグを優先して使用し、足りない場合は一般的な英単語で補足します
|
72 |
+
masterpiece, best quality, highresなどの品質に関連するタグは後工程で付与するのでつけてはいけません
|
73 |
|
74 |
+
**人数/性別**:
|
75 |
+
- your tag list
|
76 |
|
77 |
+
**ポーズ/構図**:
|
78 |
+
- your tag list
|
79 |
|
80 |
+
**背景/環境**:
|
81 |
+
- your tag list
|
82 |
|
83 |
+
**描画スタイル/テクニック**:
|
84 |
+
- your tag list
|
85 |
|
86 |
+
**身体的特徴/画面上の物体**:
|
87 |
+
- your tag list
|
88 |
+
```
|
89 |
|
90 |
+
#### 出力テンプレート
|
91 |
|
92 |
+
以下のように日本語で与える必要があります。
|
93 |
|
94 |
+
```
|
95 |
+
<think> some Japanese text </think> <prompt> Danbooru tag(comma separated English word) </prompt>
|
96 |
+
```
|
97 |
|
98 |
+
詳細はSample Scriptを確認してください
|
99 |
+
Please check Sample Script for details.
|
100 |
|
|
|
101 |
|
102 |
+
### Sample Script
|
103 |
|
104 |
+
[Google Colabのサンプル](https://github.com/webbigdata-jp/python_sample/blob/main/FanFic_Illustrator_demo.ipynb)
|
105 |
+
[Sample Colab Script](https://github.com/webbigdata-jp/python_sample/blob/main/FanFic_Illustrator_demo.ipynb)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
109 |
+
- **Developed by:** webbigdata
|
110 |
+
- **Model type:** text generation
|
111 |
+
- **Language(s) (NLP):** Japanese, English
|
112 |
+
- **Finetuned from model [optional]:** Qwen 2.5 3B Instruct
|
113 |
|
|