Instructions to use cagliostrolab/animagine-xl-3.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cagliostrolab/animagine-xl-3.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", dtype=torch.bfloat16, device_map="cuda") prompt = "1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck, masterpiece, best quality, very aesthetic, absurdes" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
docs: standardize license
Browse files
README.md
CHANGED
|
@@ -1,23 +1,34 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
license_name: faipl-1.0-sd
|
| 4 |
-
license_link: https://freedevproject.org/faipl-1.0-sd/
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
tags:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
base_model: cagliostrolab/animagine-xl-3.0
|
| 13 |
widget:
|
| 14 |
-
- text:
|
|
|
|
|
|
|
| 15 |
parameter:
|
| 16 |
-
negative_prompt:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
example_title: 1girl
|
| 18 |
-
- text:
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
example_title: 1boy
|
| 22 |
---
|
| 23 |
|
|
@@ -26,7 +37,7 @@ widget:
|
|
| 26 |
display: flex;
|
| 27 |
justify-content: center;
|
| 28 |
align-items: center;
|
| 29 |
-
height: 100vh;
|
| 30 |
}
|
| 31 |
|
| 32 |
.title {
|
|
@@ -54,7 +65,8 @@ widget:
|
|
| 54 |
}
|
| 55 |
|
| 56 |
.custom-table td {
|
| 57 |
-
|
|
|
|
| 58 |
vertical-align: top;
|
| 59 |
padding: 10px;
|
| 60 |
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.15);
|
|
@@ -63,16 +75,14 @@ widget:
|
|
| 63 |
.custom-image-container {
|
| 64 |
position: relative;
|
| 65 |
width: 100%;
|
| 66 |
-
margin-bottom:
|
| 67 |
overflow: hidden;
|
| 68 |
border-radius: 10px;
|
| 69 |
transition: transform .7s;
|
| 70 |
-
/* Smooth transition for the container */
|
| 71 |
}
|
| 72 |
|
| 73 |
.custom-image-container:hover {
|
| 74 |
transform: scale(1.05);
|
| 75 |
-
/* Scale the container on hover */
|
| 76 |
}
|
| 77 |
|
| 78 |
.custom-image {
|
|
@@ -82,15 +92,16 @@ widget:
|
|
| 82 |
border-radius: 10px;
|
| 83 |
transition: transform .7s;
|
| 84 |
margin-bottom: 0em;
|
|
|
|
| 85 |
}
|
| 86 |
|
| 87 |
.nsfw-filter {
|
| 88 |
-
filter: blur(8px);
|
| 89 |
-
transition: filter 0.3s ease;
|
| 90 |
}
|
| 91 |
|
| 92 |
.custom-image-container:hover .nsfw-filter {
|
| 93 |
-
filter: none;
|
| 94 |
}
|
| 95 |
|
| 96 |
.overlay {
|
|
@@ -106,22 +117,24 @@ widget:
|
|
| 106 |
justify-content: center;
|
| 107 |
align-items: center;
|
| 108 |
font-size: 1vw;
|
| 109 |
-
font-
|
| 110 |
text-align: center;
|
| 111 |
opacity: 0;
|
| 112 |
-
/* Keep the text fully opaque */
|
| 113 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 100%);
|
| 114 |
transition: opacity .5s;
|
| 115 |
}
|
|
|
|
| 116 |
.custom-image-container:hover .overlay {
|
| 117 |
opacity: 1;
|
| 118 |
}
|
|
|
|
| 119 |
.overlay-text {
|
| 120 |
background: linear-gradient(45deg, #7ed56f, #28b485);
|
| 121 |
-webkit-background-clip: text;
|
| 122 |
color: transparent;
|
| 123 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
|
| 124 |
-
|
|
|
|
| 125 |
.overlay-subtext {
|
| 126 |
font-size: 0.75em;
|
| 127 |
margin-top: 0.5em;
|
|
@@ -132,12 +145,12 @@ widget:
|
|
| 132 |
.overlay-subtext {
|
| 133 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
| 134 |
}
|
| 135 |
-
|
| 136 |
</style>
|
| 137 |
|
| 138 |
<h1 class="title">
|
| 139 |
<span>Animagine XL 3.1</span>
|
| 140 |
</h1>
|
|
|
|
| 141 |
<table class="custom-table">
|
| 142 |
<tr>
|
| 143 |
<td>
|
|
@@ -154,7 +167,7 @@ widget:
|
|
| 154 |
</div>
|
| 155 |
<div class="custom-image-container">
|
| 156 |
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/ytT3Oaf-atbqrnPIqz_dq.png" alt="sample3">
|
| 157 |
-
|
| 158 |
<td>
|
| 159 |
<div class="custom-image-container">
|
| 160 |
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/0oRq204okFxRGECmrIK6d.png" alt="sample1">
|
|
@@ -170,10 +183,9 @@ widget:
|
|
| 170 |
|
| 171 |
## Model Details
|
| 172 |
- **Developed by**: [Cagliostro Research Lab](https://huggingface.co/cagliostrolab)
|
| 173 |
-
- **In collaboration with**: [SeaArt.ai](https://www.seaart.ai/)
|
| 174 |
- **Model type**: Diffusion-based text-to-image generative model
|
| 175 |
- **Model Description**: Animagine XL 3.1 generates high-quality anime images from textual prompts. It boasts enhanced hand anatomy, improved concept understanding, and advanced prompt interpretation.
|
| 176 |
-
- **License**: [
|
| 177 |
- **Fine-tuned from**: [Animagine XL 3.0](https://huggingface.co/cagliostrolab/animagine-xl-3.0)
|
| 178 |
|
| 179 |
## Gradio & Colab Integration
|
|
@@ -351,7 +363,7 @@ Source code and training config are available here: https://github.com/cagliostr
|
|
| 351 |
|
| 352 |
The development and release of Animagine XL 3.1 would not have been possible without the invaluable contributions and support from the following individuals and organizations:
|
| 353 |
|
| 354 |
-
- **[SeaArt.ai](https://www.seaart.ai/)**:
|
| 355 |
- **[Shadow Lilac](https://huggingface.co/shadowlilac)**: For providing the aesthetic classification model, [aesthetic-shadow-v2](https://huggingface.co/shadowlilac/aesthetic-shadow-v2).
|
| 356 |
- **[Derrian Distro](https://github.com/derrian-distro)**: For their custom learning rate scheduler, adapted from [LoRA Easy Training Scripts](https://github.com/derrian-distro/LoRA_Easy_Training_Scripts/blob/main/custom_scheduler/LoraEasyCustomOptimizer/CustomOptimizers.py).
|
| 357 |
- **[Kohya SS](https://github.com/kohya-ss)**: For their comprehensive training scripts.
|
|
@@ -389,18 +401,13 @@ By acknowledging these limitations, we aim to provide transparency and set reali
|
|
| 389 |
|
| 390 |
## License
|
| 391 |
|
| 392 |
-
|
| 393 |
|
| 394 |
-
|
| 395 |
-
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.
|
| 396 |
-
3. **Distribution Terms:** Any distribution must be under this license or another with similar rules.
|
| 397 |
-
4. **Compliance:** Non-compliance must be fixed within 30 days to avoid license termination, emphasizing transparency and adherence to open-source values.
|
| 398 |
-
|
| 399 |
-
The choice of this license aims to keep Animagine XL 3.1 open and modifiable, aligning with open source community spirit. It protects contributors and users, encouraging a collaborative, ethical open-source community. This ensures the model not only benefits from communal input but also respects open-source development freedoms.
|
| 400 |
|
| 401 |
-
|
|
|
|
| 402 |
|
| 403 |
-
|
| 404 |
-
https://discord.gg/cqh9tZgbGc
|
| 405 |
|
| 406 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: openrail++
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
tags:
|
| 6 |
+
- text-to-image
|
| 7 |
+
- stable-diffusion
|
| 8 |
+
- safetensors
|
| 9 |
+
- stable-diffusion-xl
|
| 10 |
base_model: cagliostrolab/animagine-xl-3.0
|
| 11 |
widget:
|
| 12 |
+
- text: >-
|
| 13 |
+
1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors,
|
| 14 |
+
night, turtleneck, masterpiece, best quality, very aesthetic, absurdes
|
| 15 |
parameter:
|
| 16 |
+
negative_prompt: >-
|
| 17 |
+
nsfw, lowres, (bad), text, error, fewer, extra, missing, worst quality,
|
| 18 |
+
jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest,
|
| 19 |
+
early, chromatic aberration, signature, extra digits, artistic error,
|
| 20 |
+
username, scan, [abstract]
|
| 21 |
example_title: 1girl
|
| 22 |
+
- text: >-
|
| 23 |
+
1boy, male focus, green hair, sweater, looking at viewer, upper body,
|
| 24 |
+
beanie, outdoors, night, turtleneck, masterpiece, best quality, very
|
| 25 |
+
aesthetic, absurdes
|
| 26 |
+
parameter:
|
| 27 |
+
negative_prompt: >-
|
| 28 |
+
nsfw, lowres, (bad), text, error, fewer, extra, missing, worst quality,
|
| 29 |
+
jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest,
|
| 30 |
+
early, chromatic aberration, signature, extra digits, artistic error,
|
| 31 |
+
username, scan, [abstract]
|
| 32 |
example_title: 1boy
|
| 33 |
---
|
| 34 |
|
|
|
|
| 37 |
display: flex;
|
| 38 |
justify-content: center;
|
| 39 |
align-items: center;
|
| 40 |
+
height: 100vh;
|
| 41 |
}
|
| 42 |
|
| 43 |
.title {
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.custom-table td {
|
| 68 |
+
/* FIXED: Changed from 50% to 33.33% because there are 3 columns */
|
| 69 |
+
width: 33.33%;
|
| 70 |
vertical-align: top;
|
| 71 |
padding: 10px;
|
| 72 |
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.15);
|
|
|
|
| 75 |
.custom-image-container {
|
| 76 |
position: relative;
|
| 77 |
width: 100%;
|
| 78 |
+
margin-bottom: 1em; /* Added small margin for spacing between stacked images */
|
| 79 |
overflow: hidden;
|
| 80 |
border-radius: 10px;
|
| 81 |
transition: transform .7s;
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
.custom-image-container:hover {
|
| 85 |
transform: scale(1.05);
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
.custom-image {
|
|
|
|
| 92 |
border-radius: 10px;
|
| 93 |
transition: transform .7s;
|
| 94 |
margin-bottom: 0em;
|
| 95 |
+
display: block; /* Ensures no extra space below image */
|
| 96 |
}
|
| 97 |
|
| 98 |
.nsfw-filter {
|
| 99 |
+
filter: blur(8px);
|
| 100 |
+
transition: filter 0.3s ease;
|
| 101 |
}
|
| 102 |
|
| 103 |
.custom-image-container:hover .nsfw-filter {
|
| 104 |
+
filter: none;
|
| 105 |
}
|
| 106 |
|
| 107 |
.overlay {
|
|
|
|
| 117 |
justify-content: center;
|
| 118 |
align-items: center;
|
| 119 |
font-size: 1vw;
|
| 120 |
+
font-weight: bold; /* Corrected 'font-style: bold' to 'font-weight: bold' */
|
| 121 |
text-align: center;
|
| 122 |
opacity: 0;
|
|
|
|
| 123 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 100%);
|
| 124 |
transition: opacity .5s;
|
| 125 |
}
|
| 126 |
+
|
| 127 |
.custom-image-container:hover .overlay {
|
| 128 |
opacity: 1;
|
| 129 |
}
|
| 130 |
+
|
| 131 |
.overlay-text {
|
| 132 |
background: linear-gradient(45deg, #7ed56f, #28b485);
|
| 133 |
-webkit-background-clip: text;
|
| 134 |
color: transparent;
|
| 135 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
|
| 136 |
+
} /* FIXED: Added missing closing brace here */
|
| 137 |
+
|
| 138 |
.overlay-subtext {
|
| 139 |
font-size: 0.75em;
|
| 140 |
margin-top: 0.5em;
|
|
|
|
| 145 |
.overlay-subtext {
|
| 146 |
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
| 147 |
}
|
|
|
|
| 148 |
</style>
|
| 149 |
|
| 150 |
<h1 class="title">
|
| 151 |
<span>Animagine XL 3.1</span>
|
| 152 |
</h1>
|
| 153 |
+
|
| 154 |
<table class="custom-table">
|
| 155 |
<tr>
|
| 156 |
<td>
|
|
|
|
| 167 |
</div>
|
| 168 |
<div class="custom-image-container">
|
| 169 |
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/ytT3Oaf-atbqrnPIqz_dq.png" alt="sample3">
|
| 170 |
+
</div> </td>
|
| 171 |
<td>
|
| 172 |
<div class="custom-image-container">
|
| 173 |
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/6365c8dbf31ef76df4042821/0oRq204okFxRGECmrIK6d.png" alt="sample1">
|
|
|
|
| 183 |
|
| 184 |
## Model Details
|
| 185 |
- **Developed by**: [Cagliostro Research Lab](https://huggingface.co/cagliostrolab)
|
|
|
|
| 186 |
- **Model type**: Diffusion-based text-to-image generative model
|
| 187 |
- **Model Description**: Animagine XL 3.1 generates high-quality anime images from textual prompts. It boasts enhanced hand anatomy, improved concept understanding, and advanced prompt interpretation.
|
| 188 |
+
- **License**: [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md)
|
| 189 |
- **Fine-tuned from**: [Animagine XL 3.0](https://huggingface.co/cagliostrolab/animagine-xl-3.0)
|
| 190 |
|
| 191 |
## Gradio & Colab Integration
|
|
|
|
| 363 |
|
| 364 |
The development and release of Animagine XL 3.1 would not have been possible without the invaluable contributions and support from the following individuals and organizations:
|
| 365 |
|
| 366 |
+
- **[SeaArt.ai](https://www.seaart.ai/)**: for funding and supporting this project.
|
| 367 |
- **[Shadow Lilac](https://huggingface.co/shadowlilac)**: For providing the aesthetic classification model, [aesthetic-shadow-v2](https://huggingface.co/shadowlilac/aesthetic-shadow-v2).
|
| 368 |
- **[Derrian Distro](https://github.com/derrian-distro)**: For their custom learning rate scheduler, adapted from [LoRA Easy Training Scripts](https://github.com/derrian-distro/LoRA_Easy_Training_Scripts/blob/main/custom_scheduler/LoraEasyCustomOptimizer/CustomOptimizers.py).
|
| 369 |
- **[Kohya SS](https://github.com/kohya-ss)**: For their comprehensive training scripts.
|
|
|
|
| 401 |
|
| 402 |
## License
|
| 403 |
|
| 404 |
+
This model is licensed under the [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md).
|
| 405 |
|
| 406 |
+
To ensure full compatibility with the upstream SDXL ecosystem and standard usage rights, this model adheres strictly to the original SDXL terms, which include:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 407 |
|
| 408 |
+
- ✅ **Permitted**: Commercial use, modifications, distribution, private use
|
| 409 |
+
- ❌ **Prohibited**: Illegal activities, harmful content generation, discrimination, exploitation
|
| 410 |
|
| 411 |
+
*Note: This license supersedes any previous community license tags (e.g., FAIPL) applied to earlier versions of this repository, ensuring full compatibility with the standard SDXL ecosystem.*
|
|
|
|
| 412 |
|
| 413 |
+
Please refer to the [full license agreement](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md) for complete details.
|