Instructions to use 8BitStudio/Aniimage-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use 8BitStudio/Aniimage-2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("8BitStudio/Aniimage-2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 815 Bytes
bda6b94 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | {
"unet": {
"sample_size": 64,
"in_channels": 4,
"out_channels": 4,
"layers_per_block": 2,
"block_out_channels": [
256,
512,
768,
1024
],
"down_block_types": [
"CrossAttnDownBlock2D",
"CrossAttnDownBlock2D",
"CrossAttnDownBlock2D",
"DownBlock2D"
],
"up_block_types": [
"UpBlock2D",
"CrossAttnUpBlock2D",
"CrossAttnUpBlock2D",
"CrossAttnUpBlock2D"
],
"cross_attention_dim": 768,
"attention_head_dim": 8
},
"prediction_type": "v_prediction",
"zero_terminal_snr": true,
"beta_schedule": "scaled_linear",
"num_train_timesteps": 1000,
"clip_penultimate": true,
"guidance_rescale": 0.7,
"image_size": 512,
"vae": "madebyollin/sdxl-vae-fp16-fix"
} |