Text-to-Image
Diffusers
anima
lora
in-context
character-reference
ip-adapter-alternative
comfyui
anime
Instructions to use darask0/Anima-InContext-Character with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use darask0/Anima-InContext-Character with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("circlestone-labs/Anima", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("darask0/Anima-InContext-Character") 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
| { | |
| "last_node_id": 25, | |
| "last_link_id": 18, | |
| "nodes": [ | |
| { | |
| "id": 1, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| 40, | |
| 40 | |
| ], | |
| "size": [ | |
| 320, | |
| 100 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 1 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "UNETLoader" | |
| }, | |
| "widgets_values": [ | |
| "anima-base-v1.0.safetensors", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 2, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 40, | |
| 190 | |
| ], | |
| "size": [ | |
| 320, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 11, | |
| 12 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_3_06b_base.safetensors", | |
| "stable_diffusion", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 3, | |
| "type": "VAELoader", | |
| "pos": [ | |
| 40, | |
| 340 | |
| ], | |
| "size": [ | |
| 320, | |
| 80 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 3, | |
| 4, | |
| 5 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen_image_vae.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 4, | |
| "type": "LoraLoaderModelOnly", | |
| "pos": [ | |
| 400, | |
| 40 | |
| ], | |
| "size": [ | |
| 330, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 2 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoraLoaderModelOnly" | |
| }, | |
| "widgets_values": [ | |
| "anima-incontext-character.safetensors", | |
| 1.0 | |
| ], | |
| "title": "Character LoRA" | |
| }, | |
| { | |
| "id": 10, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 40, | |
| 470 | |
| ], | |
| "size": [ | |
| 320, | |
| 300 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 6 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": [], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "ref_fullbody.png", | |
| "image" | |
| ], | |
| "title": "Reference 1 (full body)" | |
| }, | |
| { | |
| "id": 11, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 40, | |
| 800 | |
| ], | |
| "size": [ | |
| 320, | |
| 300 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 7 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": [], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "ref_face.png", | |
| "image" | |
| ], | |
| "title": "Reference 2 (face, optional)" | |
| }, | |
| { | |
| "id": 12, | |
| "type": "AnimaRefEncode", | |
| "pos": [ | |
| 400, | |
| 470 | |
| ], | |
| "size": [ | |
| 300, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 3 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 6 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 8 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefEncode" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1024 | |
| ] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "AnimaRefEncode", | |
| "pos": [ | |
| 400, | |
| 800 | |
| ], | |
| "size": [ | |
| 300, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 13, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 7 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 9 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefEncode" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1024 | |
| ] | |
| }, | |
| { | |
| "id": 14, | |
| "type": "AnimaRefLatentBatch", | |
| "pos": [ | |
| 740, | |
| 470 | |
| ], | |
| "size": [ | |
| 300, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 14, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "ref_latent_1", | |
| "type": "LATENT", | |
| "link": 8 | |
| }, | |
| { | |
| "name": "ref_latent_2", | |
| "type": "LATENT", | |
| "link": 9 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 10 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaRefLatentBatch" | |
| }, | |
| "widgets_values": [ | |
| "pad" | |
| ] | |
| }, | |
| { | |
| "id": 15, | |
| "type": "AnimaInContextApply", | |
| "pos": [ | |
| 760, | |
| 40 | |
| ], | |
| "size": [ | |
| 330, | |
| 220 | |
| ], | |
| "flags": {}, | |
| "order": 15, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 2 | |
| }, | |
| { | |
| "name": "ref_latent", | |
| "type": "LATENT", | |
| "link": 10 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 13 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "AnimaInContextApply" | |
| }, | |
| "widgets_values": [ | |
| 1.0, | |
| 0.0, | |
| 1.0, | |
| true, | |
| "pad", | |
| 0.0 | |
| ], | |
| "title": "Anima In-Context Apply" | |
| }, | |
| { | |
| "id": 20, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 400, | |
| 640 | |
| ], | |
| "size": [ | |
| 330, | |
| 140 | |
| ], | |
| "flags": {}, | |
| "order": 20, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 11 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 14 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "1girl, silver hair, twin tails, blue eyes, black sailor uniform with red ribbon, standing in a park, cherry blossoms, detailed illustration" | |
| ], | |
| "title": "Positive (describe pose/scene + appearance)" | |
| }, | |
| { | |
| "id": 21, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 400, | |
| 300 | |
| ], | |
| "size": [ | |
| 330, | |
| 100 | |
| ], | |
| "flags": {}, | |
| "order": 21, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 12 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 15 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "worst quality, low quality, blurry, jpeg artifacts" | |
| ], | |
| "title": "Negative" | |
| }, | |
| { | |
| "id": 22, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 760, | |
| 300 | |
| ], | |
| "size": [ | |
| 300, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 22, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 16 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1024, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 23, | |
| "type": "KSampler", | |
| "pos": [ | |
| 1140, | |
| 40 | |
| ], | |
| "size": [ | |
| 300, | |
| 270 | |
| ], | |
| "flags": {}, | |
| "order": 23, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 13 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 14 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 15 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 16 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 17 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 42, | |
| "fixed", | |
| 30, | |
| 4.0, | |
| "er_sde", | |
| "simple", | |
| 1.0 | |
| ] | |
| }, | |
| { | |
| "id": 24, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1480, | |
| 40 | |
| ], | |
| "size": [ | |
| 260, | |
| 80 | |
| ], | |
| "flags": {}, | |
| "order": 24, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 17 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 5 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 18 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 25, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 1760, | |
| 40 | |
| ], | |
| "size": [ | |
| 320, | |
| 300 | |
| ], | |
| "flags": {}, | |
| "order": 25, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 18 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "SaveImage" | |
| }, | |
| "widgets_values": [ | |
| "Anima_InContext" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 1, | |
| 0, | |
| 4, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 2, | |
| 4, | |
| 0, | |
| 15, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 0, | |
| 12, | |
| 0, | |
| "VAE" | |
| ], | |
| [ | |
| 4, | |
| 3, | |
| 0, | |
| 13, | |
| 0, | |
| "VAE" | |
| ], | |
| [ | |
| 5, | |
| 3, | |
| 0, | |
| 24, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 6, | |
| 10, | |
| 0, | |
| 12, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 7, | |
| 11, | |
| 0, | |
| 13, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 8, | |
| 12, | |
| 0, | |
| 14, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 9, | |
| 13, | |
| 0, | |
| 14, | |
| 1, | |
| "LATENT" | |
| ], | |
| [ | |
| 10, | |
| 14, | |
| 0, | |
| 15, | |
| 1, | |
| "LATENT" | |
| ], | |
| [ | |
| 11, | |
| 2, | |
| 0, | |
| 20, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 12, | |
| 2, | |
| 0, | |
| 21, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 13, | |
| 15, | |
| 0, | |
| 23, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 14, | |
| 20, | |
| 0, | |
| 23, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 15, | |
| 21, | |
| 0, | |
| 23, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 16, | |
| 22, | |
| 0, | |
| 23, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 17, | |
| 23, | |
| 0, | |
| 24, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 18, | |
| 24, | |
| 0, | |
| 25, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": {}, | |
| "version": 0.4 | |
| } |