Type | |
Stats | 2,029 |
Reviews | (330) |
Published | Aug 30, 2024 |
Base Model | |
Trigger Words | SEE INTRODUCTION ่งไป็ป้จๅ |
Hash | AutoV2 7CBF111F4A |
ArtiWaifu Diffusion
We have released the ArtiWaifu Diffusion model, designed to generate aesthetically pleasing and faithfully restored anime-style illustrations.
The AWA Diffusion is an iteration of the Stable Diffusion XL model, mastering over 9000 artistic styles and more than 6000 anime characters (version 2.0), generating images through trigger words.
As a specialized image generation model for anime, it excels in producing high-quality anime images, especially in generating images with highly recognizable styles and characters while maintaining a consistently high-quality aesthetic expression.
News
2024/08/31: ๐ข Announcement: Trigger words list of each version is now moved to the About This Version panel, which is on the right hand side of the model page.
2024/08/30: ArtiWaifu Diffusion 2.0 version is released on CivitAI, HuggingFace, LiblibAI (ShakkerAI) and TensorArt.
Model Details
The AWA Diffusion model is fine-tuned from Stable Diffusion XL, with a selected dataset of 2.5M (version 2.0) high-quality anime images, covering a wide range of both popular and niche anime concepts. AWA Diffusion employs our most advanced training strategies, enabling users to easily induce the model to generate images of specific characters or styles while maintaining high image quality and aesthetic expression.
Usage Guide
This guide will (i) introduce the model's recommended usage methods and prompt writing strategies, aiming to provide suggestions for generation, and (ii) serve as a reference document for model usage, detailing the writing patterns and strategies for trigger words, quality tags, rating tags, style tags, and character tags.
Basic Usage
CFG scale: 5-11. Recommended is 7.5.
Resolution: Area (= width x height) around 1024x1024. Not lower than 256x256, and resolutions where both length and width are multiples of 32.
Sampling method: Euler A (20+ steps) or DPM++ 2M Karras (~35 steps)
Due to the special training method, AWA's optimal inference step count are higher than regular values. As the inference steps increase, the quality of the generated images can continue to improve...
โ Question: Why not use the standard SDXL resolution?
๐ก Answer: Because the bucketing algorithm used in training does not adhere to a fixed set of buckets. Although this does not conform to positional encoding, we have not observed any adverse effects.
Prompting Strategies
All text-to-image diffusion models have a notoriously high sensitivity to prompt, and AWA Diffusion is no exception. Even a misspelling in the prompt, or even replacing spaces with underscores, can affect the generated results. AWA Diffusion encourages users to write prompt in tags separated by comma + space ( ,
). Although the model also supports natural language descriptions as prompt, or an intermix of both, the tag-by-tag format is more stable and user-friendly.
When describing a specific ACG concept, such as a character, style, or scene, we recommend users choose tags from the Danbooru tags and replace underscores in the Danbooru tags with spaces to ensure the model accurately understands your needs. For example, bishop_(chess)
should be written as bishop (chess)
, and in inference tools like AUTOMATIC1111 WebUI that use parentheses to weight prompt, all parentheses within the tags should be escaped, i.e., bishop \(chess\)
.
Tag Ordering
Including AWA Diffusion, most diffusion models better understand logically ordered tags. While tag ordering is not mandatory, it can help the model better understand your needs. Generally, the earlier the tag in the order, the greater its impact on generation.
Below is an example of tag ordering. The example organizes the order of tags, prepends art style tags and character tags because style and subject are the most important to the image. Subsequently, other tags are added in order of importance. Lastly, aesthetic tags and quality tags are positioned at the end to further emphasize the aesthetics of the image:
art style (by xxx) -> character (1 frieren (sousou no frieren)) -> race (elf) -> composition (cowboy shot) -> painting style (impasto) -> theme (fantasy theme) -> main environment (in the forest, at day) -> background (gradient background) -> action (sitting on ground) -> expression (expressionless) -> main characteristics (white hair) -> other characteristics (twintails, green eyes, parted lip) -> clothing (wearing a white dress) -> clothing accessories (frills) -> other items (holding a magic wand) -> secondary environment (grass, sunshine) -> aesthetics (beautiful color, detailed) -> quality (best quality) -> secondary description (birds, cloud, butterfly)
Tag order is not set in stone. Flexibility in writing prompt can yield better results. For example, if the effect of a concept (such as style) is too strong and detracts from the aesthetic appeal of the image, you can move it to a later position to reduce its impact.
Negative Prompt
Negative prompt are not necessary for AWA Diffusion. If you use negative prompt, it is not the case that the more negative prompt, the better. They should be as concise as possible and easily recognizable by the model. Too many negative words may lead to poorer generation results. Here are some recommended scenarios for using negative prompt:
Watermark:
signature
,logo
,artist name
;Quality:
worst quality
,lowres
,ugly
,abstract
;Style:
real life
,3d
,celluloid
,sketch
,draft
;Human anatomy:
deformed hand
,fused fingers
,extra limbs
,extra arms
,missing arm
,extra legs
,missing leg
,extra digits
,fewer digits
.
Trigger Words
Add trigger words to your prompts to inform the model about the concept you want to generate. Trigger words can include character names, artistic styles, scenes, actions, quality, etc.
Attention: See the Model Details of each version for full lists of trigger words.
Tips for Trigger Word
Typos: The model is very sensitive to the spelling of trigger words. Even a single letter difference can cause a trigger to fail or lead to unexpected results.
Bracket Escaping: Pay attention when using inference tools that rely on parentheses for weighting prompt, such as AUTOMATIC1111 WebUI, to escape parentheses in trigger words, e.g.,
1lucy(cyberpunk)
->1lucy \(cyberpunk\)
.Triggering Effect Preview๏ผThrough searching tags on Danbooru to preview the tag and better understand the tag's meaning and usage.
Style Tags
Style tags are divided into two types: Painting Style Tags and Artistic Style Tags. Painting Style Tags describe the painting techniques or media used in the image, such as oil painting, watercolor, flat color, and impasto. Artistic Style Tags represent the artistic style of the artist behind the image.
AWA Diffusion supports the following Painting Style Tags:
Painting style tags available in the Danbooru tags, such as
oil painting
,watercolor
,flat color
, etc.;All painting style tags supported by AID XL 0.8, such as
flat-pasto
, etc.;All style tags supported by Neta Art XL 1.0, such as
gufeng
, etc.;Other tags, such as
by trickortreat
, etc.;
AWA Diffusion supports the following Artistic Style Tags:
Artistic style tags available in the Danbooru tags, such as
byyoneyama mai
,bywlop
, etc.;All artistic style tags supported by AID XL 0.8, such as
byantifreeze3
,by7thknights
, etc.;
The higher the tag count in the tag repository, the more thoroughly the artistic style has been trained, and the higher the fidelity in generation. Typically, artistic style tags with a count higher than 50 yield better generation results.
Tips for Style Tag
Intensity Adjustment: You can adjust the intensity of a style by altering the order or weighting of style tags in your prompt. Frontloading a style tag enhances its effect, while placing it later reduces its effect.
โ Question: Why include the prefix by
in artistic style tags?
๐ก Answer: To clearly inform the model that you want to generate a specific artistic style rather than something else, we recommend including the prefix by
in artistic style tags. This differentiates byxxx
from xxx
, especially when xxx
itself carries other meanings, such as dino
which could represent either a dinosaur or an artist's identifier. Similarly, when triggering characters, add a 1
as a prefix to the character trigger word.
Character Tags
Character tags describe the character IP in the generated image. Using character tags will guide the model to generate the appearance features of the character.
Character tags also need to be sourced from the Character Tag List. To generate a specific character, first find the corresponding trigger word in the tag repository, replace all underscores _
in the trigger word with spaces , and prepend 1
to the character name. For example, 1ayanami rei
triggers the model to generate the character Rei Ayanami from the anime "EVA," corresponding to the Danbooru tag ayanami_rei
; 1asuna(sao)
triggers the model to generate the character Asuna from "Sword Art Online," corresponding to the Danbooru tag asuna_(sao)
.
The higher the tag count in the tag repository, the more thoroughly the character has been trained, and the higher the fidelity in generation. Typically, character tags with a count higher than 100 yield better generation results.
Tips for Character Tag
Character Costuming: To achieve more flexible character costuming, character tags DO NOT deliberately guide the model to draw the official attire of the character. To generate a character in a specific official outfit, besides the trigger word, you should also include a description of the attire in the prompt, e.g., "1 lucy (cyberpunk), wearing a white cropped jacket, underneath bodysuit, shorts, thighhighs, hip vent".
Series Annotations: Some character tags include additional parentheses annotations after the character name. The parentheses and the annotations within cannot be omitted, e.g.,
1 lucy (cyberpunk)
cannot be written as1 lucy
. Other than that, you don't need to add any additional annotations, for example, you DO NOT need to add the series tag to which the character belongs after the character tag.Known Issue 1: When generating certain characters, mysterious feature deformations may occur, e.g.,
1 asui tsuyu
triggering the character Tsuyu Asui from "My Hero Academia" may result in an extra black line between the eyes. This is because the model incorrectly interprets the large round eyes as glasses, thusglasses
should be included in the negative prompt to avoid this issue.Known Issue 2: When generating less popular characters, AWA Diffusion might produce images with incomplete feature restoration due to insufficient data/training. In such cases, we recommend that you extend the character description in your prompt beyond just the character name, detailing the character's origin, race, hair color, attire, etc.
Known Issue 3: Some character tags will carries style. And some are too heavy to overlap. Lower the weight of character tag to alleviate the problem. For example,
frieren
->(frieren:0.8)
.
Character Tag Trigger Examples
1 lucy (cyberpunk)
โ Correct character tag1 lucy
โ Missing bracket annotation1 lucy (cyber)
โ Incorrect bracket annotationlucy (cyberpunk)โ Missing prefix1
1 lucy cyberpunk
โ Missing brackets1 lucy (cyberpunkโ Bracket not closed1 lucky (cyberpunk)
โ Spelling error1 lucy (cyberpunk: edgerunners)
โ Bracket annotation not following the required character tag
โ Question: Why do some character tags contain bracket annotations, e.g., lucy (cyberpunk)
, while others do not, e.g., frieren
?
๐ก Answer: In different works, there may be characters with the same name, such as Asuna from "Sword Art Online" and "Blue Archive". To distinguish these characters with the same name, it is necessary to annotate the character's name with the work's name, abbreviated if the name is too long. For characters with unique names that currently have no duplicates, like frieren
, no special annotations are required.
Quality Tags & Aesthetic Tags
For AWA Diffusion, including quality descriptors in your positive prompt is very important. Quality descriptions relate to quality tags and aesthetic tags.
Quality tags directly describe the aesthetic quality of the generated image, impacting the detail, texture, human anatomy, lighting, color, etc. Adding quality tags helps the model generate higher quality images. Quality tags are ranked from highest to lowest as follows:
amazing quality -> best quality -> high quality -> normal quality -> low quality -> worst quality
Aesthetic tags describe the aesthetic features of the generated image, aiding the model in producing artistically appealing images. In addition to typical aesthetic words like perspective
, lighting and shadow
, AWA Diffusion has been specially trained to respond effectively to aesthetic trigger words such as beautiful color
, detailed
, and aesthetic
, which respectively express appealing colors, details, and overall beauty.
The recommended generic way to describe quality is: <your prompt>, beautiful color, detailed, amazing quality
Tips for Quality and Aesthetic Tags
Tag Quantity: Only one quality tag is needed; multiple aesthetic tags can be added.
Tag Position: The position of quality and aesthetic tags is not fixed, but they are typically placed at the end of the prompt.
Relative Quality: There is no absolute hierarchy of quality; the implied quality aligns with general aesthetic standards, and different users may have different perceptions of quality.
Rating Tags
Rating tags describe the level of exposure in the content of the generated image. Rating tags are ranked from highest to lowest as follows:
rating: general (or safe) -> rating: suggestive -> rating: questionable -> rating: explicit (or nsfw)
Prompt Word Examples
Example 1
A
by yoneyama mai, 1 frieren, 1girl, solo, fantasy theme, smile, holding a magic wand, beautiful color, amazing quality
by yoneyama mai triggers the artistic style of Yoneyama Mai, placed at the front to enhance the effect.
1 frieren triggers the character Frieren from the series "Frieren at the Funeral."
beautiful color describes the beautiful colors in the generated image.
amazing quality describes the stunning quality of the generated image.
B
by nixeu, 1 lucy (cyberpunk), 1girl, solo, cowboy shot, gradient background, white cropped jacket, underneath bodysuit, shorts, thighhighs, hip vent, detailed, best quality
Example 2: Style Mixing
By layering multiple different style tags, you can generate images with features of multiple styles.
A Simple Mixing
by ningen mame, by ciloranko, by sho (sho lwlw), 1girl, 1 hatsune miku, sitting, arm support, smile, detailed, amazing quality
B Weighted Mixing
Using AUTOMATIC1111 WebUI prompt weighting syntax (parentheses weighting), weight different style tags to better control the generated image's style.
(by ningen mame:0.8), (by ciloranko:1.1), (by sho (sho lwlw):1.2), 1girl, 1 hatsune miku, sitting, arm support, smile, detailed, amazing quality
C Advanced Mixing
Using AUTOMATIC1111 WebUI prompt weighting syntax (parentheses weighting), |
symbol can be used to directly mix two words.
(by trickortreat|by shiroski|by wlop|by baihuahua|by as109), 1girl, 1 hatsune miku, sitting, arm support, smile, detailed, amazing quality
Example 3: Multi-Character Scenes
By adding multiple character tags to your prompts, you can generate images with multiple characters in the same frame. Compared to other similar models, AWA performs better in multi-character scenes but remains unstable.
A Mixed Gender Scene
1girl and 1boy, 1 ganyu girl, 1 gojou satoru boy, beautiful color, amazing quality
B Same Gender Scene
2girls, 1 ganyu girl, 1 yoimiya girl, beautiful color, amazing quality
Future Work
AWA Diffusion is expected to combine high-level aesthetics with comprehensive knowledge. It should neither have the traditional AI's greasy feel nor become a knowledge-deficient vase. We will continue to explore more advanced training techniques and strategies, consistently improving the model's quality.
Support Us
Training AWA Diffusion incurs substantial costs. If you appreciate our work, please consider supporting us through Ko-fi, to aid our research and development efforts. Thank you for your like and support!