Linaqruf / animagine-xl

huggingface.co
Total runs: 981
24-hour runs: 22
7-day runs: 13
30-day runs: 451
Model's Last Updated: August 21 2023
text-to-image

Introduction of animagine-xl

Model Details of animagine-xl

Animagine XL

sample1 sample3 sample2 sample4

Overview

Animagine XL is a high-resolution, latent text-to-image diffusion model. The model has been fine-tuned using a learning rate of 4e-7 over 27000 global steps with a batch size of 16 on a curated dataset of superior-quality anime-style images. This model is derived from Stable Diffusion XL 1.0.

Like other anime-style Stable Diffusion models, it also supports Danbooru tags to generate images.

e.g. face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck


Features
  1. High-Resolution Images: The model trained with 1024x1024 resolution. The model is trained using NovelAI Aspect Ratio Bucketing Tool so that it can be trained at non-square resolutions.
  2. Anime-styled Generation: Based on given text prompts, the model can create high quality anime-styled images.
  3. Fine-Tuned Diffusion Process: The model utilizes a fine-tuned diffusion process to ensure high quality and unique image output.

Model Details

How to Use:
  • Download Animagine XL here , the model is in .safetensors format.
  • You need to use Danbooru-style tag as prompt instead of natural language, otherwise you will get realistic result instead of anime
  • You can use any generic negative prompt or use the following suggested negative prompt to guide the model towards high aesthetic generationse:
lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
  • And, the following should also be prepended to prompts to get high aesthetic results:
masterpiece, best quality
  • Use this cheat sheet to find the best resolution:
768 x 1344: Vertical (9:16)
915 x 1144: Portrait (4:5)
1024 x 1024: Square (1:1)
1182 x 886: Photo (4:3)
1254 x 836: Landscape (3:2)
1365 x 768: Widescreen (16:9)
1564 x 670: Cinematic (21:9)

Gradio & Colab

We also support a Gradio Web UI and Colab with Diffusers to run Animagine XL : Open In Spaces Open In Colab

🧨 Diffusers

Make sure to upgrade diffusers to >= 0.18.2:

pip install diffusers --upgrade

In addition make sure to install transformers , safetensors , accelerate as well as the invisible watermark:

pip install invisible_watermark transformers accelerate safetensors

Running the pipeline (if you don't swap the scheduler it will run with the default EulerDiscreteScheduler in this example we are swapping it to EulerAncestralDiscreteScheduler :

import torch
from torch import autocast
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler

model = "Linaqruf/animagine-xl"

pipe = StableDiffusionXLPipeline.from_pretrained(
    model, 
    torch_dtype=torch.float16, 
    use_safetensors=True, 
    variant="fp16"
    )

pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.to('cuda')

prompt = "face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck"
negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"

image = pipe(
    prompt, 
    negative_prompt=negative_prompt, 
    width=1024,
    height=1024,
    guidance_scale=12,
    target_size=(1024,1024),
    original_size=(4096,4096),
    num_inference_steps=50
    ).images[0]

image.save("anime_girl.png")

Limitation

This model inherit Stable Diffusion XL 1.0 limitation

Runs of Linaqruf animagine-xl on huggingface.co

981
Total runs
22
24-hour runs
34
3-day runs
13
7-day runs
451
30-day runs

More Information About animagine-xl huggingface.co Model

More animagine-xl license Visit here:

https://choosealicense.com/licenses/openrail++

animagine-xl huggingface.co

animagine-xl huggingface.co is an AI model on huggingface.co that provides animagine-xl's model effect (), which can be used instantly with this Linaqruf animagine-xl model. huggingface.co supports a free trial of the animagine-xl model, and also provides paid use of the animagine-xl. Support call animagine-xl model through api, including Node.js, Python, http.

animagine-xl huggingface.co Url

https://huggingface.co/Linaqruf/animagine-xl

Linaqruf animagine-xl online free

animagine-xl huggingface.co is an online trial and call api platform, which integrates animagine-xl's modeling effects, including api services, and provides a free online trial of animagine-xl, you can try animagine-xl online for free by clicking the link below.

Linaqruf animagine-xl online free url in huggingface.co:

https://huggingface.co/Linaqruf/animagine-xl

animagine-xl install

animagine-xl is an open source model from GitHub that offers a free installation service, and any user can find animagine-xl on GitHub to install. At the same time, huggingface.co provides the effect of animagine-xl install, users can directly use animagine-xl installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

animagine-xl install url in huggingface.co:

https://huggingface.co/Linaqruf/animagine-xl

Url of animagine-xl

animagine-xl huggingface.co Url

Provider of animagine-xl huggingface.co

Linaqruf
ORGANIZATIONS

Other API from Linaqruf

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 27 2025