Linaqruf commited on
Commit
00e52ee
1 Parent(s): 8ccf9cf

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +213 -0
README.md ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: faipl-1.0-sd
4
+ license_link: https://freedevproject.org/faipl-1.0-sd/
5
+ language:
6
+ - en
7
+ tags:
8
+ - text-to-image
9
+ - stable-diffusion
10
+ - safetensors
11
+ - stable-diffusion-xl
12
+ base_model: yodayo-ai/kivotos-xl-2.0
13
+ widget:
14
+ - text: 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck, masterpiece, best quality, very aesthetic, absurdres
15
+ parameter:
16
+ negative_prompt: nsfw, low quality, worst quality, very displeasing, 3d, watermark, signature, ugly, poorly drawn
17
+ example_title: 1girl
18
+ - text: 1boy, male focus, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck, masterpiece, best quality, very aesthetic, absurdres
19
+ parameter:
20
+ negative_prompt: nsfw, low quality, worst quality, very displeasing, 3d, watermark, signature, ugly, poorly drawn
21
+ example_title: 1boy
22
+ ---
23
+
24
+ <style>
25
+
26
+ body {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ height: 100vh;
31
+ margin: 0;
32
+ font-family: Arial, sans-serif;
33
+ background-color: #f4f4f9;
34
+ overflow: auto;
35
+ }
36
+
37
+ .container {
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ justify-content: center;
42
+ width: 100%;
43
+ padding: 20px;
44
+ }
45
+
46
+ .title-container {
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: center;
50
+ align-items: center;
51
+ padding: 1em;
52
+ border-radius: 10px;
53
+ }
54
+
55
+ .title {
56
+ font-size: 3em;
57
+ font-family: 'Montserrat', sans-serif;
58
+ text-align: center;
59
+ font-weight: bold;
60
+ }
61
+
62
+ .title span {
63
+ background: -webkit-linear-gradient(45deg, #0077b6, #00b4d8, #90e0ef);
64
+ -webkit-background-clip: text;
65
+ -webkit-text-fill-color: transparent;
66
+ }
67
+
68
+ .gallery {
69
+ display: grid;
70
+ grid-template-columns: repeat(5, 1fr);
71
+ gap: 10px;
72
+ }
73
+
74
+ .gallery img {
75
+ width: 100%;
76
+ height: auto;
77
+ margin-top: 0px;
78
+ margin-bottom: 0px;
79
+ border-radius: 10px;
80
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
81
+ transition: transform 0.3s;
82
+ }
83
+
84
+ .gallery img:hover {
85
+ transform: scale(1.05);
86
+ }
87
+
88
+ .note {
89
+ font-size: 1em;
90
+ opacity: 50%;
91
+ text-align: center;
92
+ margin-top: 20px;
93
+ color: #555;
94
+ }
95
+
96
+ </style>
97
+
98
+ <div class="container">
99
+ <div class="title-container">
100
+ <div class="title"><span>Clandestine XL 1.0</span></div>
101
+ </div>
102
+ <div class="gallery">
103
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/3S39A2Kb4IyRWl4oJGAMI.png" alt="Image 1">
104
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/-Ik81LMT6i66a5WrFFT3S.png" alt="Image 2">
105
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/E5xqiFyC1xLenC6W3_Y4D.png" alt="Image 3">
106
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/FmGcq38iSG6coE0_1-cAk.png" alt="Image 4">
107
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/NcKeowyXCCpD0ZnBhwYm5.png" alt="Image 5">
108
+ </div>
109
+ <!-- <div class="note">
110
+ Drag and drop each image to <a href="https://huggingface.co/spaces/Linaqruf/pnginfo" target="_blank">this link</a> or use ComfyUI to get the metadata.
111
+ </div> -->
112
+ </div>
113
+
114
+ ## Overview
115
+
116
+ **Clandestine XL** is a yet another stylized Animagine XL finetune, finetuned from Kivotos XL 2.0. It specializes in generating sharp-lined anime illustrations inspired by popular AI-generated art styles on Pixiv. The model excels in producing stylized anime characters with improved anatomy and hand renderings.
117
+
118
+ ## Model Details
119
+ - **Developed by**: [Linaqruf](https://github.com/Linaqruf)
120
+ - **Model type**: Stable Diffusion XL
121
+ - **License**: [Fair AI Public License 1.0-SD](https://freedevproject.org/faipl-1.0-sd/)
122
+ - **Finetuned from model**: [Kivotos XL 2.0](https://huggingface.co/yodayo-ai/kivotos-xl-2.0)
123
+
124
+ ## Supported Platform
125
+ 1. Use this model in our platform: [![Open In Spaces](https://img.shields.io/badge/Generate%20in%20Yodayo-141414?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAGtUExURf/JZf/KZf/LZf64aftuevx+dv7DZv/HZvyKc/toe/2wa//KZP/MZPt4d/oIjvQUj7uVmPXKa/6va/ohifsFjcpfmtvGe//JZPtme/QOkGOEz87Hg//JY/2mbfoYi/4Hi5lNuoq/rfUOkF2E08THifoZiplOun6/tF6E0sXHiP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50vIIAAAAASUVORK5CYII=)](https://yodayo.com)
126
+ 2. Use it in [`ComfyUI`](https://github.com/comfyanonymous/ComfyUI) or [`Stable Diffusion Webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
127
+ 3. Use it with 🧨 `diffusers`
128
+
129
+ ## 🧨 Diffusers Installation
130
+
131
+ First install the required libraries:
132
+
133
+ ```bash
134
+ pip install diffusers transformers accelerate safetensors --upgrade
135
+ ```
136
+
137
+ Then run image generation with the following example code:
138
+
139
+ ```python
140
+ import torch
141
+ from diffusers import StableDiffusionXLPipeline
142
+
143
+ pipe = StableDiffusionXLPipeline.from_pretrained(
144
+ "yodayo-ai/clandestine-xl-1.0",
145
+ torch_dtype=torch.float16,
146
+ use_safetensors=True,
147
+ custom_pipeline="lpw_stable_diffusion_xl",
148
+ add_watermarker=False,
149
+ variant="fp16"
150
+ )
151
+ pipe.to('cuda')
152
+
153
+ prompt = "1girl, kazusa \(blue archive\), blue archive, solo, upper body, v, smile, looking at viewer, outdoors, night, masterpiece, best quality, very aesthetic, absurdres"
154
+ negative_prompt = "nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawn"
155
+
156
+ image = pipe(
157
+ prompt,
158
+ negative_prompt=negative_prompt,
159
+ width=832,
160
+ height=1216,
161
+ guidance_scale=7,
162
+ num_inference_steps=28
163
+ ).images[0]
164
+
165
+ image.save("./cat.png")
166
+ ```
167
+
168
+ ## Usage Guidelines
169
+
170
+ ### Tag Ordering
171
+
172
+ For optimal results, it's recommended to follow the structured prompt template because we train the model like this:
173
+
174
+ ```
175
+ 1girl/1boy, character name, from which series, by which artists, everything else in any order.
176
+ ```
177
+
178
+ ### Special Tags
179
+
180
+ Clandestine XL 1.0 inherits special tags from Animagine XL 3.1 to enhance image generation by steering results toward quality, rating, creation date, and aesthetic. This inheritance ensures that Clandestine XL 1.0 can produce high-quality, relevant, and aesthetically pleasing images. While the model can generate images without these tags, using them helps achieve better results.
181
+
182
+ - **Quality tags**: masterpiece, best quality, great quality, good quality, normal quality, low quality, worst quality
183
+ - **Rating tags**: safe, sensitive, nsfw, explicit
184
+ - **Year tags**: newest, recent, mid, early, oldest
185
+ - **Aesthetic tags**: very aesthetic, aesthetic, displeasing, very displeasing
186
+
187
+ ### Recommended Settings
188
+
189
+ To guide the model towards generating high-aesthetic images, use the following recommended settings:
190
+
191
+ - **Negative prompts**:
192
+ ```
193
+ nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawn
194
+ ```
195
+ - **Positive prompts**:
196
+ ```
197
+ masterpiece, best quality, very aesthetic, absurdres
198
+ ```
199
+ - **Classifier-Free Guidance (CFG) Scale**: should be around 5 to 7; 10 is fried, >12 is deep-fried.
200
+ - **Sampling steps**: should be around 25 to 30; 28 is the sweet spot.
201
+ - **Sampler**: Euler Ancestral (Euler a) is highly recommended.
202
+ - **Supported resolutions**:
203
+ ```
204
+ 1024 x 1024, 1152 x 896, 896 x 1152, 1216 x 832, 832 x 1216, 1344 x 768, 768 x 1344, 1536 x 640, 640 x 1536
205
+ ```
206
+
207
+ ## License
208
+
209
+ Clandestine XL 1.0 falls under [Fair AI Public License 1.0-SD](https://freedevproject.org/faipl-1.0-sd/) license, which is compatible with Stable Diffusion models’ license. Key points:
210
+
211
+ 1. **Modification Sharing:** If you modify Clandestine XL 1.0, you must share both your changes and the original license.
212
+ 2. **Source Code Accessibility:** If your modified version is network-accessible, provide a way (like a download link) for others to get the source code. This applies to derived models too.
213
+ 3. **Distribution Terms:** Any distribution must be under this license or another with similar rules.