Views
No views yet
enhanceaiteam/AnimeSAIAnimeSAI is a cutting-edge text-to-image generation model by EnhanceAI, tailored specifically for creating high-quality anime-style images. Utilizing advanced diffusion techniques, this model is ideal for artists, designers, and anime enthusiasts looking to produce visually stunning and accurate anime art based on textual descriptions.AnimeSAI, you can integrate it with the diffusers library. Below is an example of how to generate images:1import torch
2from diffusers import (
3 StableDiffusionXLPipeline,
4 KDPM2AncestralDiscreteScheduler,
5 AutoencoderKL
6)
7
8# Load VAE component
9vae = AutoencoderKL.from_pretrained(
10 "madebyollin/sdxl-vae-fp16-fix",
11 torch_dtype=torch.float16
12)
13
14# Configure the pipeline
15pipe = StableDiffusionXLPipeline.from_pretrained(
16 "enhanceaiteam/AnimeSAI",
17 vae=vae,
18 torch_dtype=torch.float16
19)
20pipe.scheduler = KDPM2AncestralDiscreteScheduler.from_config(pipe.scheduler.config)
21pipe.to('cuda')
22
23# Define prompts and generate image
24prompt = "a vibrant anime character standing under cherry blossoms"
25negative_prompt = ""
26
27image = pipe(
28 prompt,
29 negative_prompt=negative_prompt,
30 width=1024,
31 height=1024,
32 guidance_scale=7,
33 num_inference_steps=50,
34 clip_skip=2
35).images[0]
36
37image.save("generated_anime_image.png")AnimeSAI:























AnimeSAI on the EnhanceAI Playground. Experiment with different prompts and see the incredible anime-style images you can create.AnimeSAI is licensed under the Apache 2.0 License.AnimeSAI from the available models.