--- license: other license_name: circlestone-labs-non-commercial-license license_link: LICENSE.md base_model: circlestone-labs/Anima base_model_relation: adapter pipeline_tag: text-to-image tags: - lora - anima - comfyui - reference-image - character-consistency - style-transfer - anime widget: - text: "masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day" output: url: showcase/v2/police_cafe.jpg - text: "masterpiece, best quality, score_7, safe, 1girl, solo, full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light" output: url: showcase/v2/police_lie.jpg - text: "masterpiece, best quality, score_7, safe, 1girl, solo, full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm" output: url: showcase/v2/mecha_fly.jpg - text: "masterpiece, best quality, score_7, safe, 1girl, solo, sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting" output: url: showcase/v2/mecha_sit.jpg - text: "masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back" output: url: showcase/v2/swim_beach.jpg - text: "masterpiece, best quality, score_7, safe, 1girl, solo, upper body, sitting, poolside, legs in water, splashing, laughing, day" output: url: showcase/v2/swim_pool.jpg - text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day" output: url: showcase/v2/duo_police_mecha.jpg - text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day" output: url: showcase/v2/duo_police_swim.jpg - text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day" output: url: showcase/v2/duo_mecha_swim.jpg ---
# Anima Reference Adapter (v2)
**Character and style from a reference image. Pose, place and framing from your prompt.**
[](https://huggingface.co/ElectronGirl/anima-ref-adapter)
[](https://github.com/ArcAnima/ComfyUI-Anima-Ref-Adapter)
[](https://github.com/ElectronGirl/anima-ref-adapter-research)
[](https://github.com/ArcAnima/ComfyUI-Anima-Ref-Adapter/blob/main/LICENSE)
[](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/LICENSE.md)
[Showcase](#showcase) · [Quick start](#quick-start) · [Guide](guide.en.md) · [Speed](#speed-and-compatibility) · [Nodes](#nodes) · [How it works](#how-it-works) · [Training code](https://github.com/ElectronGirl/anima-ref-adapter-research)
**English** · [한국어](README.ko.md) · [日本語](README.ja.md)
cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day · full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light
full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm · sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting
cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back · upper body, sitting, poolside, legs in water, splashing, laughing, day
### Two characters
Put the two references side by side in one image (the core **Image Stitch** node), write who is on the left
and who is on the right with a few words each, use `2girls` or `1boy, 1girl` instead of `solo`, and a
landscape size. [Workflow](workflows/anima_ref_adapter_two_characters.json).
2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day
2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day
2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day
## Quick start
```bash
cd ComfyUI/custom_nodes
git clone https://github.com/ArcAnima/ComfyUI-Anima-Ref-Adapter.git
```
1. Get Anima base v1.0, the Qwen3-0.6B text encoder and the Qwen-Image VAE from
[circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima), as for Anima itself.
2. Restart ComfyUI and open [`workflows/anima_ref_adapter.json`](workflows/anima_ref_adapter.json): the Anima
text-to-image workflow plus one node. No other custom nodes are needed.
3. Load a reference image, write a prompt that describes only the scene, and queue. The first run downloads
`anima_ref_adapter_v2_r64.safetensors` (183 MB) from [Hugging Face](https://huggingface.co/ElectronGirl/anima-ref-adapter) into `ComfyUI/models/loras/`; to install it by hand,
[download it](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) into that folder.
**In your own workflow:** put **Anima Ref Adapter** between the model (after any other LoRAs) and the
sampler, and connect the VAE and the reference image.
Step by step, with prompt tips and troubleshooting: **[user guide](guide.en.md)**.
## Speed and compatibility
RTX 3060 Ti 8 GB (fp16), 832x1216, one reference; the faster of two runs:
| setup | time per image |
|---|---|
| Anima base, er_sde 30 steps, cfg 4.5, **no reference** | 33 s |
| + pilot adapter, `ref_guidance` 4.5 | 105 s |
| **+ v2 adapter**, `ref_guidance` 4.5 | **65-67 s** |
| `ref_guidance` 1 (no extra model call) | 50 s |
| + SageAttention ([KJNodes](https://github.com/kijai/ComfyUI-KJNodes) Patch Sage Attention) | 62 s |
| + EasyCache (core) | 63 s |
| `ref_end` 0.6 | 62 s |
| **turbo LoRA** (strength 1), 10 steps, cfg 1, `ref_guidance` 1 | **11 s** |
- SageAttention, EasyCache and `ref_end` 0.6 each save about 7% on this GPU, with nearly the same image.
- A **turbo LoRA** for Anima base (tested: `anima-turbo-lora-v0.2`) goes in front of the adapter. It keeps
the characters but pulls the drawing toward its own look, so less of the reference style comes through.
full body, walking, hands in pockets, city, street, night, rain · upper body, sitting, holding cup, drinking, cafe, indoors, window, sunlight · cowboy shot, looking at viewer, smile, beach, ocean, sunset · portrait, from side, looking afar, cherry blossoms, petals · upper body, reading, holding book, library, bookshelf · full body, standing, snow, forest, winter
full body, walking, smile, city, street, night, neon lights · upper body, sitting, eating, cake, cafe, indoors · cowboy shot, looking back, smile, beach, ocean, sunset · portrait, closed eyes, smile, cherry blossoms, petals, wind · full body, sitting, on chair, crossed legs, classroom, sunlight · upper body, holding umbrella, rain, street, looking at viewer
**Held-out characters**, excluded from training. Each row: the reference, the adapter's result for a new
scene, the same scene-only prompt without the adapter, and the base model with the character named and its
appearance tags.
| character | scene tags |
|---|---|
| Tohru | `full body, looking at viewer, heart hands, crying, simple background, white background` |
| Eternity Larva | `full body, looking at viewer, against wall, closed eyes, gradient background, sunlight` |
| Meiko | `portrait, from side, writing, crying, beach, ocean, light rays` |
| Crocodile | `upper body, from below, drinking, sad, bookshelf, indoors` |
| pilot training | |
|---|---|
| data | 3,600 images generated by Anima: 600 groups of one character in one artist style x 6 scenes; 300 characters, 427 artists; 12 characters held out |
| pairs | 17,280 (reference, target) pairs; target prompt keeps scene tags only (70%), + some appearance tags (20%), or nothing (10%) |
| optimization | flow matching, batch 4, AdamW 1e-4 cosine, bf16, one RTX PRO 6000 Max-Q |