# Anima Reference Adapter (v2)
**参照画像からキャラクターと画風を、プロンプトからポーズ・場所・構図を。**
[](https://huggingface.co/ElectronGirl/anima-ref-adapter)
[](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)
[](https://github.com/ElectronGirl/anima-ref-adapter-research)
[](https://ko-fi.com/electrongirl)
[ショーケース](#ショーケース) · [クイックスタート](#クイックスタート) · [使い方ガイド](guide.ja.md) · [速度](#速度と互換性) · [学習コード](https://github.com/ElectronGirl/anima-ref-adapter-research)
[English](README.md) · [한국어](README.ko.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
### 2人のキャラクター
参照画像2枚を1枚に横並びでつなぎ(標準の **Image Stitch** ノード)、左と右がそれぞれ誰かを短く書きます。
`solo` の代わりに `2girls` や `1boy, 1girl` を使い、横長のサイズにします。[ワークフロー](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
## クイックスタート
```bash
cd ComfyUI/custom_nodes
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
```
1. Anima base v1.0、Qwen3-0.6B テキストエンコーダー、Qwen-Image VAE を
[circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) から入手します。Anima を使うときと同じです。
2. ComfyUI を再起動し、[`workflows/anima_ref_adapter.json`](workflows/anima_ref_adapter.json) を開きます。Anima の
text-to-image ワークフローにノードを1つ加えたもので、ほかのカスタムノードは不要です。
3. 参照画像を読み込み、シーンだけを書いたプロンプトを入力して実行します。初回は `anima_ref_adapter_v2_r64.safetensors`(183MB)を
[Hugging Face](https://huggingface.co/ElectronGirl/anima-ref-adapter) から `ComfyUI/models/loras/` にダウンロードします。手動で入れる場合は
[このファイル](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) を同じフォルダに置いてください。
**自作のワークフローでは**、**Anima Ref Adapter** をモデル(ほかの LoRA の後)とサンプラーの間に置き、VAE と
参照画像をつなぎます。
プロンプトの書き方、設定、トラブルシューティングまで順に説明した **[使い方ガイド](guide.ja.md)** があります。
## 速度と互換性
RTX 3060 Ti 8GB(fp16)、832x1216、参照画像1枚、2回測った速いほう:
| 設定 | 画像1枚 |
|---|---|
| Anima base、er_sde 30 steps、cfg 4.5、**参照画像なし** | 33 秒 |
| + パイロット版アダプター、`ref_guidance` 4.5 | 105 秒 |
| **+ v2 アダプター**、`ref_guidance` 4.5 | **65-67** 秒 |
| `ref_guidance` 1(追加のモデル呼び出しなし) | 50 秒 |
| + SageAttention([KJNodes](https://github.com/kijai/ComfyUI-KJNodes) Patch Sage Attention) | 62 秒 |
| + EasyCache(標準ノード) | 63 秒 |
| `ref_end` 0.6 | 62 秒 |
| **turbo LoRA**(strength 1)、10 steps、cfg 1、`ref_guidance` 1 | **11** 秒 |
- SageAttention、EasyCache、`ref_end` 0.6 は、この GPU でそれぞれ約7%速くなり、画像はほぼ同じです。
- Anima base 用の **turbo LoRA**(検証したファイル: `anima-turbo-lora-v0.2`)はアダプターの前に置きます。キャラクターは
保たれますが、絵が turbo 特有の画風に寄るため、参照画像の画風は反映されにくくなります。
- 未検証: Anima-Turbo・Anima-Aesthetic の完全なモデル、SamplerSPEED、torch.compile。