Koolchh commited on
Commit
fcb36ac
·
verified ·
1 Parent(s): 84a0a8a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +134 -3
README.md CHANGED
@@ -1,3 +1,134 @@
1
- ---
2
- license: openrail++
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openrail++
3
+ tags:
4
+ - text-to-image
5
+ - stable-diffusion
6
+ - diffusers
7
+ widget:
8
+ - text: score_9, 2boys, male focus, multiple boys, yaoi, couple, princess carry, carrying, collared shirt, shirt, pants, jacket, looking at another, smile, wedding, absurdres, highres, year 2025
9
+ parameters:
10
+ negative_prompt: score_1, score_2, score_3, lowres, artistic error, film grain, scan artifacts, jpeg artifacts, chromatic aberration, dithering, halftone, screentones, multiple views, logo, too many watermarks, negative space, blank page
11
+ output:
12
+ url: images/sample01.png
13
+ example_title: sample01
14
+ - text: score_9, A handsome anime boy playing acoustic guitar in living room at home, absurdres, highres
15
+ parameters:
16
+ negative_prompt: score_1, score_2, score_3, lowres, artistic error, film grain, scan artifacts, jpeg artifacts, chromatic aberration, dithering, halftone, screentones, multiple views, logo, too many watermarks, negative space, blank page
17
+ output:
18
+ url: images/sample02.png
19
+ example_title: sample02
20
+ - text: score_9, tachibana makoto, free!, 1boy, male focus, solo, lying, on bed, bed, pillow, bedroom, shirt, pants, looking at viewer, one eye closed, sleepy, open mouth, absurdres, highres, year 2025
21
+ parameters:
22
+ negative_prompt: score_1, score_2, score_3, lowres, artistic error, film grain, scan artifacts, jpeg artifacts, chromatic aberration, dithering, halftone, screentones, multiple views, logo, too many watermarks, negative space, blank page
23
+ output:
24
+ url: images/sample03.png
25
+ example_title: sample03
26
+ - text: score_9, 2boys, male focus, multiple boys, rating:general, arm around shoulder, tank top, shorts, bara, muscular male, muscular, baseball cap, hat, looking at viewer, absurdres, highres, year 2025
27
+ parameters:
28
+ negative_prompt: score_1, score_2, score_3, lowres, artistic error, film grain, scan artifacts, jpeg artifacts, chromatic aberration, dithering, halftone, screentones, multiple views, logo, too many watermarks, negative space, blank page
29
+ output:
30
+ url: images/sample04.png
31
+ example_title: sample04
32
+ ---
33
+
34
+ # AnimeBoysZeroXL
35
+
36
+ **Creating models is a labor of love, but it takes a significant amount of time and compute power to get them just right. If you’re enjoying my models, consider fueling my next project with a coffee on [Ko-fi](https://ko-fi.com/koolchh) ☕. Thank you for keeping this project going!**
37
+
38
+ <Gallery />
39
+
40
+ A dedicated model for high-quality anime-style male characters. This model is specifically optimized for males-only content, offering a wide range of aesthetic styles and high versatility.
41
+
42
+ ## 🚀 Inference Guide
43
+ - **⚠️ Important**: This model uses Zero Terminal SNR with V-prediction. Please ensure you are using the correct settings during inference.
44
+ - **ComfyUI Users**: Add the `ModelSamplingDiscrete` node into your workflow. Set `sampling` to `v_prediction`, `zsnr` to `true`.
45
+ - **Automatic1111 Users**: Place the `.yaml` config file into the model folder. The .yaml file must have the exact same name as the model file, only with the `.yaml` extension instead of `.safetensors`. Set `Noise schedule for sampling` in settings to `Zero Terminal SNR`.
46
+ - **Prompting**: Always begin your prompt with a score tag (e.g. `score_9`). You can use any of these styles:
47
+ - Tag soup: `score_X, tag1, tag2, tag3, ...`
48
+ - Natural language: `score_X, [your description here]`
49
+ - Mixed approach: `score_X, [description], tag1, tag2, ...`
50
+ - **Negative Prompt**: Choose from one of these three presets depending on your needs:
51
+ - **Minimal**: `score_1`
52
+ - **Light**: `score_1, lowres, artistic error, scan artifacts, jpeg artifacts, multiple views, too many watermarks, negative space, blank page`
53
+ - **Heavy**: `score_1, score_2, score_3, lowres, artistic error, film grain, scan artifacts, jpeg artifacts, chromatic aberration, dithering, halftone, screentones, multiple views, logo, too many watermarks, negative space, blank page`
54
+ - **CFG Scale**: A CFG scale of **3 to 5** is recommended. For finer control, I suggest using [dynamic thresholding](https://github.com/mcmonkeyprojects/sd-dynamic-thresholding).
55
+ - *Pro-tip*: I set `mimic_scale` to match the CFG scale and set both minimum scales to the same lower value. I use `Half Cosine Up` for both modes.
56
+ - **Resolution**: To get started, try these dimensions:
57
+ - **Portrait**: 832 × 1216
58
+ - **Square**: 1024 × 1024
59
+ - **Landscape**: 1216 × 832
60
+ - *Some other supported sizes*: 768×1344, 768×1280, 896×1152, 960×1088, 1344×768, 1280×768, 1152×896, 1088×960.
61
+
62
+ ## 🧨Diffusers Example Usage
63
+
64
+ ```python
65
+ import torch
66
+ from diffusers import DiffusionPipeline
67
+
68
+ pipe = DiffusionPipeline.from_pretrained("Koolchh/AnimeBoysZeroXL", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
69
+ pipe.to("cuda")
70
+
71
+ prompt = "score_9, 1boy, male focus, shirt, solo, looking at viewer, smile, black hair, brown eyes, short hair"
72
+ negative_prompt = "score_1"
73
+
74
+ image = pipe(
75
+ prompt=prompt,
76
+ negative_prompt=negative_prompt,
77
+ width=1024,
78
+ height=1024,
79
+ guidance_scale=5,
80
+ num_inference_steps=28
81
+ ).images[0]
82
+ ```
83
+
84
+ ## 🧪 Training Details
85
+
86
+ AnimeBoysZeroXL was fine-tuned from [Pony Diffusion V6 XL](https://civitai.com/models/257749/pony-diffusion-v6-xl) using approximately 950k images. The knowledge cutoff is November 2025.
87
+
88
+ The following tags were used during training to help you steer the results toward your desired style.
89
+
90
+ ### Score tags
91
+
92
+ - Each image is tagged with `score_X`, where `X` is a range from **1 to 9**.
93
+ - `score_9` represents the highest aesthetic quality based on my personal preferences.
94
+
95
+ ### Rating tags
96
+
97
+ | tag | rating |
98
+ |-----------------------|--------------|
99
+ | `rating:general` | general |
100
+ | `rating:sensitive` | sensitive |
101
+ | `rating:questionable` | questionable |
102
+ | `rating:explicit` | explicit |
103
+
104
+ ### Year tags
105
+
106
+ Use `year YYYY` (ranging from 2005 to 2025) to target specific era styles.
107
+
108
+ ### Training configurations
109
+ - **Hardware**: 4 × Nvidia A100 SXM 80GB
110
+ - **Optimizer**: AdaFactor
111
+ - **Gradient Accumulation Steps**: 8
112
+ - **Effective Batch Size**: 128 (4 × 8 × 4)
113
+ - **Learning Rates**:
114
+ - **U-Net**: 2e-5
115
+ - **Text Encoders**: 1e-5
116
+ - **LR Schedule**: Constant with 250 warmup steps
117
+ - **Precision**: FP16 Mixed Precision
118
+
119
+ ### 🔄 Changes from AnimeBoysXL v3.0
120
+ - **Tag Overhaul**: Quality tags have been removed. The 5-category aesthetic tags have been replaced with a more granular 9-category score tag system. Renamed rating tags for better clarity. Abolished the tag ordering scheme.
121
+ - **Captions**: A subset of highly aesthetic images was trained using natural language prompts for better comprehension.
122
+ - **Emphasis**: Highly aesthetic images now have more "repeats" in the training data.
123
+ - **Optimization**:
124
+ - 5% caption dropout for unconditional guidance.
125
+ - Trained with Zero Terminal SNR and V-prediction.
126
+ - Implemented adaptive loss weighting.
127
+ - No multi-resolution noise or debiased estimation loss.
128
+ - Trained with input perturbation noise (gamma=0.1).
129
+ - Trained with huber loss.
130
+ - **Merging**: This model is a merge across several iterations of the same training run for better stability.
131
+
132
+ ## License
133
+
134
+ AnimeBoysZeroXL is a derivative model of [Pony Diffusion V6 XL](https://civitai.com/models/257749/pony-diffusion-v6-xl) by PurpleSmartAI. Please read their license before using the model.