[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110560":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},110560,"SnapRef","ArcAnima\u002FSnapRef","ArcAnima","SnapRef: one-image reference adapter for Anima (asymmetric attention + reference K\u002FV cache). Training, data generation and evaluation code.",null,"Python",179,3,4,1,0,33,108,24,76.31,"Apache License 2.0",false,"main",true,[],"2026-11-20 13:48:42","2026-11-23 08:26:51","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fv2a-stable\u002Fhero.jpg\" width=\"100%\" alt=\"SnapRef v2a stable\">\n\u003C\u002Fp>\n\n> [!NOTE]\n> **SnapRef v2a stable.** Character reference, several views of one character, and per-reference weights.\n> See the [examples](#v2a-stable) and [v1a \u002F v2a evaluation](#evaluation).\n\n> [!IMPORTANT]\n> **Please support SnapRef!** Developing these models has taken **400+ H100 GPU-hours** so far.\n> If SnapRef is useful to you, a ⭐ on [GitHub](https:\u002F\u002Fgithub.com\u002FArcAnima\u002FSnapRef), sharing your results or\n> reporting issues helps a lot, and GPU sponsorship is very welcome.\n>\n> **[Support SnapRef on Ko-fi](https:\u002F\u002Fko-fi.com\u002Fluis3207)**\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v2a\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🤗%20weights-snapref--v2a%20stable-ff5a1f\" alt=\"weights v2a stable\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fspaces\u002F0ppxnhximxr\u002Fsnapref\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Space-Try%20SnapRef-ffcc4d\" alt=\"Try SnapRef on Hugging Face Spaces\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fcivitai.com\u002Fmodels\u002F3028191\u002Fsnapref?modelVersionId=3457619\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCivitai-SnapRef-1769ff\" alt=\"Civitai SnapRef\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fko-fi.com\u002Fluis3207\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FKo--fi-Support_SnapRef-ff5e5b?logo=kofi&amp;logoColor=white\" alt=\"Support SnapRef on Ko-fi\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fcirclestone-labs\u002FAnima\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbase-Anima%20v1.0-4b5bd6\" alt=\"base model\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArcAnima\u002FSnapRef\u002Ftree\u002Fmain\u002Fcomfyui_nodes\u002Fsnapref\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FComfyUI-custom%20node-1b1b1f\" alt=\"ComfyUI\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArcAnima\u002FSnapRef\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode-Apache--2.0-2ea44f\" alt=\"code license\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>Give Anima one picture of a character. Write only the scene.\u003C\u002Fb>\u003Cbr>\n  Hair, eyes and outfit come from the reference and follow the new pose. The art style comes from the reference too,\u003Cbr>\n  or, with \u003Ccode>mode char\u003C\u002Fcode>, from the base model and your prompt.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#quick-start\">Quick start\u003C\u002Fa> ·\n  \u003Ca href=\"#v2a-stable\">v2a stable\u003C\u002Fa> ·\n  \u003Ca href=\"#evaluation\">Evaluation\u003C\u002Fa> ·\n  \u003Ca href=\"#how-it-works\">How it works\u003C\u002Fa> ·\n  \u003Ca href=\"#training-it-yourself\">Training\u003C\u002Fa> ·\n  \u003Ca href=\"#roadmap\">Roadmap\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\nThis repository contains the training, data generation and evaluation code for **SnapRef**, a reference\nadapter for [Anima](https:\u002F\u002Fhuggingface.co\u002Fcirclestone-labs\u002FAnima) base v1.0.\n**[v2a stable](https:\u002F\u002Fcivitai.com\u002Fmodels\u002F3028191\u002Fsnapref?modelVersionId=3457619)** is the selected stable model;\n[v1a](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1a),\n[v1b](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1b) and the earlier\n[pre1](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v2a-pre1) \u002F\n[pre2](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v2a-pre2) builds remain available for comparison.\nThe node in `comfyui_nodes\u002Fsnapref\u002F` supports these adapter versions.\n\nDownload v2a stable from [Civitai](https:\u002F\u002Fcivitai.com\u002Fmodels\u002F3028191\u002Fsnapref?modelVersionId=3457619), together with the [node and workflows ZIP](https:\u002F\u002Fcivitai.com\u002Fapi\u002Fdownload\u002Fmodels\u002F3457619?type=Archive&format=Other).\n\n## Highlights\n\n|  |  |\n|---|---|\n| ⚡ **Fast** | The reference is encoded once and its keys\u002Fvalues are cached. Generation is about 15 % slower than plain Anima, and faster than the other Anima reference adapters. |\n| 🎯 **Scene-only prompts** | No character name, appearance or artist tags. The reference carries them. |\n| 🔌 **Drop-in node** | One ComfyUI node patches the model. Works with the bf16 and the FP8 Anima base. |\n| 🎨 **Character reference** | `mode char` takes the character and leaves the reference's art style behind (much stronger in v2a). |\n| 👥 **Two characters** | Stitch two references side by side and prompt `2girls`. |\n| 🧩 **Several references, one character** | `image_2`, `image_3`: e.g. an upper-body shot for the face and a full-body shot for the outfit. |\n| ⚖️ **Reference weights** | `weight_1` … `weight_3`: how much each reference counts, without slowing generation down. |\n\n## Quick start\n\n1. Install Anima base v1.0 with its text encoder and VAE in ComfyUI.\n2. Copy [`comfyui_nodes\u002Fsnapref\u002F`](comfyui_nodes\u002Fsnapref) from this repository to `ComfyUI\u002Fcustom_nodes\u002Fsnapref\u002F`\n   (replace an older SnapRef node). This is the newest node; it works with every SnapRef version.\n3. Put the weights in `ComfyUI\u002Fmodels\u002Floras\u002F`:\n\n   | weights | |\n   |---|---|\n   | [`snapref_v2a.safetensors`](https:\u002F\u002Fcivitai.com\u002Fmodels\u002F3028191\u002Fsnapref?modelVersionId=3457619) | stable; public download on Civitai |\n   | [`snapref_v1a.safetensors`](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1a) | previous stable release; public download |\n   | [`snapref_v2a_pre2.safetensors`](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v2a-pre2) | earlier preview |\n   | [`snapref_v2a_pre1.safetensors`](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v2a-pre1) | earlier preview |\n   | [`snapref_v1b.safetensors`](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1b) | twice the LoRA rank of v1a |\n\n   v1a, v1b and the preview builds also have FP8 variants. The v2a stable file is bf16.\n4. Download the [v2a node and workflows ZIP](https:\u002F\u002Fcivitai.com\u002Fapi\u002Fdownload\u002Fmodels\u002F3457619?type=Archive&format=Other), then open\n   `workflows\u002Fsnapref_v2a_simple.json`, choose your reference image and queue. The ZIP includes six workflows\n   configured for `snapref_v2a.safetensors`.\n\n```text\nmasterpiece, best quality, score_7, safe, 1girl, solo, full body, sitting, crossed legs, bench, street, night\n```\n\n> [!NOTE]\n> SnapRef is not a regular LoRA. Load it with a SnapRef node, not with LoraLoader.\n\n**Two nodes.**\n\n| node | for | inputs |\n|---|---|---|\n| **SnapRef** | everyone | up to eight pictures picked inside the node (click or drop), Mode (*Character & Style* \u002F *Character*), Strength per picture, Fidelity |\n| **SnapRef (Advanced)** | full control | every setting (below and in the [v1a model card](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1a#settings)); saved workflows open on it unchanged |\n\nAfter filling two pictures, click the square **+** button to the right of **Character** to add another\nreference slot (up to eight pictures of the same character). Each picture has its own Strength; Fidelity\napplies to all references. Existing one- and two-picture workflows remain compatible.\n\nOn the simple node, **Strength** is how much a picture counts (1 = as trained, 0 = off, 2 = twice) and\n**Fidelity** trades detail for prompt freedom (1 = every detail of the picture; lower also lets the negative\nprompt branch read the picture, so the prompt is followed more freely, about 12 % slower).\n\n**Fidelity** is also available on the advanced node (0–1, default 1). It is ignored when\n`ref_in_uncond` or `ref_guidance_on` is on. It is appended after the existing inputs to preserve saved workflows.\n\nInputs of SnapRef (Advanced) added for v2a:\n\n| new node input | default | |\n|---|---|---|\n| `image_2`, `image_3` | | more references of the **same** character (e.g. full body when `image` is an upper-body shot) |\n| `use_batch` | off | use every image of an IMAGE batch as a reference |\n| `multi_layout` | `separate` | `separate`: each reference on its own. `stitch`: side by side in one reference (same speed as one image) |\n| `weight_1` … `weight_3` | 1.0 | how much each reference counts (0–2, 0 = skipped); separate layout only |\n\nThe new inputs sit at the end of the node, so saved v1 workflows open unchanged.\n\n## Anima-2.9B block routing\n\nBoth SnapRef nodes automatically recognize a 28-block adapter on Anima-2.9B's known\n40-block depth expansion. Adapter hooks follow the original layers at\n`0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35, 37, 38, 39`.\nThe inserted layers keep their own weights, and reference K\u002FV caches retain all 40\nactual layer positions. Native layouts keep their original routing. Other block-count\nmismatches raise an error before generation rather than silently using the wrong layers.\nNo extra node or setting is needed.\n\nThis corrects weight routing; it does not establish reference quality on 2.9B or its\nfinetunes, since the adapters were trained on Anima base v1.0. CPU hook, reference-cache,\nand model-reload regressions can be run with `python -m unittest discover -s tests -v`\n(PyTorch and safetensors required, no ComfyUI or checkpoints).\n\n## v2a stable\n\nCharacter, style and multi-reference examples generated with the stable adapter on Anima base v1.0.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Fbanner.jpg\" width=\"100%\" alt=\"Four reference characters shown in a sunlit museum, a rainy station and a garden\">\n\n\u003Csub>Four references, three scene prompts. Orange outlines mark the inputs. The prompts describe the scene,\npose and lighting without character names or appearance tags.\u003C\u002Fsub>\n\n### Character styles\n\nKeep the reference, change the style prompt. These examples use `char` mode with watercolor, 1990s anime\nand flat-color treatments; the scene and seed stay the same within each row.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Fcharacter_styles.jpg\" width=\"100%\" alt=\"Two reference characters rendered in watercolor, 1990s anime and flat-color styles with matched seeds\">\n\n\u003Csub>The reference supplies the character, while the style prompt changes the rendering. Fine details\nsuch as eyewear and collars can still vary.\u003C\u002Fsub>\n\n### Multi-reference\n\nUse **two pictures of the same character**: one with a clear face and another showing the full outfit.\nIn `separate` layout, the references are encoded individually and used together during generation.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Fmulti_reference.jpg\" width=\"100%\" alt=\"Persica and Mia: two input views followed by matched-prompt, matched-seed results with one reference and two references\">\n\n\u003Csub>One reference versus two, with the same prompt and seed in each row. The second-reference weight is\n**1.0 for Persica** and **0.4 for Mia**. These are selected examples, not an aggregate improvement score.\u003C\u002Fsub>\n\n### The same pair, another scene\n\nThe same two pictures can guide a walking pose outdoors or a seated portrait in a study.\nKeep `solo` in the prompt when you want one character.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Fmulti_reference_scenes.jpg\" width=\"100%\" alt=\"Persica and Mia reference pairs used for an autumn walk and a quiet study scene\">\n\n\u003Csub>Both references contribute to every output. These scenes use independently selected seeds;\nthe controlled one-versus-two comparison is the figure above.\u003C\u002Fsub>\n\n### Reference weights\n\nStart with both weights at `1.0`. If a second picture changes the look too much, try lowering its weight.\n`0.4` gives it a smaller contribution; `0` skips it. Per-reference weights apply in `separate` layout.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Freference_weights.jpg\" width=\"100%\" alt=\"Persica at two fixed seeds: one reference, second-reference weight 0.4 and second-reference weight 1.0\">\n\n\u003Csub>Each row keeps the prompt and seed fixed. The first-reference weight remains 1.0.\nHigher weight is not a guarantee of a better result.\u003C\u002Fsub>\n\n### More scenes\n\n### Persica, from a single reference\n\nA museum atrium, a railway platform and a garden bench: different framing and lighting from one input.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Fpersica_scenes.jpg\" width=\"100%\" alt=\"Persica reference and selected museum, railway-platform and garden outputs\">\n\n### After the rain\n\nThree independent characters under the same scene prompt. Cool platform lighting and warm reflections\ngive the reference designs a different atmosphere.\n\n\u003Cimg src=\"assets\u002Fv2a-stable\u002Frainy_platform.jpg\" width=\"100%\" alt=\"Three selected rainy-platform portraits with their individual reference thumbnails\">\n\n\u003Csub>Selected examples generated with SnapRef v2a.\nThe examples are curated separately from the fixed evaluation.\u003C\u002Fsub>\n\n## Evaluation\n\nThe fixed evaluation contains **64 cases × 2 seeds**, separate from the curated figures above.\n\n| Metric | v1a | **v2a** |\n|---|---:|---:|\n| Appearance tag recall ↑ | 0.8722 | **0.8727** |\n| Extra appearance tags ↓ | 0.1341 | **0.1401** |\n| Head SigLIP similarity ↑ | 0.8989 | **0.8903** |\n| Head DINO similarity ↑ | 0.7431 | **0.7407** |\n| Head CCIP distance ↓ | 0.0684 | **0.0715** |\n| Full-image CCIP distance ↓ | 0.0725 | **0.0757** |\n\nAppearance-tag recall improves slightly, while our qualitative assessment shows substantially better\nreference following than v1a. A remaining issue is that the model can struggle to reproduce facial\ndetails when the face in the reference image is very bright.\n\n## How it works\n\n```mermaid\nflowchart LR\n    R[reference image] -->|VAE, σ = 0| RB[\"reference branch\u003Cbr\u002F>(ref LoRA)\"]\n    RB -->|\"K\u002FV of every layer\u003Cbr\u002F>computed once\"| C[(K\u002FV cache)]\n    N[noisy latent + scene prompt] --> TB[\"target branch\u003Cbr\u002F>(tgt LoRA)\"]\n    C -.->|\"read at every step\"| TB\n    TB --> O[image]\n```\n\n- **Asymmetric attention.** The target tokens attend to themselves and to the cached reference. The reference\n  never attends to the target, so it can be computed once, before sampling starts.\n- **Two LoRAs.** The reference branch and the target branch each have their own LoRA (v1a: rank 128 and 64).\n- **Separate position.** The reference sits at its own place in the model's RoPE coordinates, so it is read for\n  appearance and not copied as a layout.\n- **Several references.** Each reference is encoded on its own and the cached K\u002FV of all of them are\n  concatenated; a reference weight adds `log(w)` to that reference's keys.\n- **Training data.** v1a: 58,300 images generated with Anima itself (`scenes3x4`): 2,367 characters, each drawn in\n  several scenes and poses in one artist style. The training prompt leaves out what the reference supplies.\n  The earlier v2a-pre1 \u002F pre2 run continued from v1a with 231,724 Danbooru illustrations as 80 % of the pairs.\n  v2a stable uses a fresh adapter trained on the expanded synthetic corpus.\n\n## Training it yourself\n\n```bash\n# 1. data: scenes x poses per character, rendered with ComfyUI (one worker per GPU)\nPROJECT_ROOT=$PWD bash deploy\u002Frun_scenes3x4.sh production\n# 2. text contexts + latents -> safetensors, then train, preview and compare every checkpoint\nGPUS=0,1 FIRST=v1a bash deploy\u002Ftrain_pipeline.sh   # configs\u002Ftrain_asym_\u003Cname>.json\n# 3. score a comparison run\npython train\u002Fscore_panels.py RUN_A RUN_B --label a b --out scores.json\n# Historical v2a-pre1 \u002F pre2 mixed-data training example (configs\u002Ftrain_v2a.json)\npython train\u002Ftrain_asym.py --prep v2_mix_prep --config configs\u002Ftrain_v2a.json --init snapref_v1a.safetensors --out runs\u002Fv2a\n```\n\n| path | |\n|---|---|\n| `train\u002Fasym.py` | asymmetric attention, reference K\u002FV cache, the two LoRAs |\n| `train\u002Fprepare_asym.py`, `train\u002Ftrain_asym.py` | tensor preparation and training |\n| `train\u002Feval_asym.py`, `train\u002Fcompare_refs.py`, `train\u002Fscore_panels.py` | held-out loss gaps, side-by-side runs against other adapters, embedding scores |\n| `train\u002Fanima_env.py`, `train\u002Fsample.py`, `train\u002Fpreview.py`, `train\u002Fprepare*.py` | model plumbing on top of ComfyUI, sampling, in-training previews, shared data helpers |\n| `comfyui_nodes\u002Fsnapref\u002F` | the ComfyUI nodes: SnapRef (simple, `simple.py` + `web\u002Fsnapref.js`) and SnapRef (Advanced) |\n| `train\u002Fdetail_eval\u002F` | detail evaluation: frozen set, renders, tag \u002F head-crop features, paired CIs, watcher |\n| `train\u002Fmultiref_test.py`, `train\u002Fccip_eval.py` | multi-reference test, CCIP identity scores |\n| `datagen\u002Fselect_v2_images.py`, `datagen\u002Fbuild_pairs_v2.py`, `train\u002FD_build_v2_prep.py`, `train\u002FD_merge_preps.py` | v2a-pre1 \u002F pre2 data: Danbooru selection (tags only), training pairs, prep, merge with the generated prep |\n| `datagen\u002Fclean_tags_v2.py`, `configs\u002Fdatagen_scenes_v2.json` | the scenes_v2 synthetic data run (v2a-syn) |\n| `train\u002Fstyle_research\u002F`, `train\u002Fstyle_*.py` | the v2 style-transfer experiments (did not beat the baseline) |\n| `datagen\u002F` | tag catalogs, scene manifests, pose extension, ComfyUI batch workflow and GPU worker |\n| `configs\u002F` | the configs of the released runs: `datagen_scenes.json`, `train_asym.json` (v1a), `train_asym_v1b.json`, `train_v2a.json` (v2a-pre1 \u002F pre2), `datagen_scenes_v2.json` |\n| `comfyui_nodes\u002Fanima_ref_datagen_nodes\u002F` | batched generation nodes used to render the training data |\n| `deploy\u002F` | GPU box setup, data generation launcher, training pipeline, FP8 conversion |\n\nData generation and training of v1a alone took about 120 H100 GPU-hours.\n\n## Roadmap\n\n- [x] **v1a**: asymmetric attention + K\u002FV cache, 58k generated images. Released.\n- [x] **v1b**: twice the LoRA rank. Keeps the character as well as v1a and follows the prompt slightly more closely.\n  Released as [snapref-v1b](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1b).\n- [x] **v2a-pre1 \u002F pre2**: continued from v1a with 80 % real Danbooru illustrations. Much stronger `mode char`;\n  multi-reference and reference weights in the node. Earlier preview builds on Hugging Face.\n- [x] **v2a stable**: fresh adapter on expanded synthetic data; stable weights selected and figures evaluated.\n  Public weight access is not open yet. The evaluation above compares v1a and v2a.\n- [ ] Multi-reference training (2–3 references → another pose), style transfer (v2.1+).\n\n## Compatibility and troubleshooting\n\n- **Black image with an fp16 model or `--fast`.** Fixed in the node update of 2026-10-31. Anima overflows in\n  fp16. ComfyUI runs the model in fp16 when the checkpoint is stored in fp16 (many merges), with `--fp16-unet`,\n  or with `--fast` \u002F `--fast fp16_accumulation`. The old node encoded the reference in fp16 there and produced NaN.\n  The new node keeps that part in fp32, as ComfyUI itself does. bf16 output is unchanged (same bits). With the\n  old node, add `--bf16-unet` to the ComfyUI launch arguments, or drop `fp16_accumulation` from `--fast`.\n- **Anzhc Mod Guidance:** works in either node order with the updated node. Before, applying Mod Guidance first\n  dropped the reference.\n- **Spectrum:** works with `ref_guidance_on` off. With it on, Spectrum-type step forecasting breaks; the node now\n  logs a warning.\n- **sorryhyun Spectrum\u002FMod Guidance:** the default positive-only reference setting works with the updated node.\n  Reference encoding excludes target modulation, and Mod Guidance's full CFG batch is kept intact while only\n  positive rows read the reference. This fixes the reported 4-vs-2 error without enabling `ref_in_uncond` or\n  `ref_guidance_on`. Actual image batches larger than one also need Spectrum's own projection-row expansion fix\n  (tested against 2.13.4); SnapRef alone cannot repair Spectrum's cached-forward batch handling.\n- **SageAttention:** with `strength` or reference weights ≠ 1, the reference part uses PyTorch's fused attention,\n  so a GPU where Sage is much faster can be slightly slower there.\n- **Reference cache:** the reference is encoded once and kept between runs while the picture and settings stay the\n  same (about 0.9 GB of VRAM for a 1 MP picture); \"Free model and node cache\" in ComfyUI releases it.\n\n## Known limitations\n\n- Very small details (earrings, fine patterns, scars) can be simplified.\n- A dark-skinned reference can come out with lighter skin.\n- A scene can override the reference outfit (*beach* → swimsuit). Raise `strength` or name the outfit.\n- v2a does not improve every identity metric over v1a; see the fixed evaluation above.\n- v2a `mode char`: a few outfit details of the reference can change (a patterned item drawn plain, a hat left out).\n\n## License\n\n- **Code:** Apache-2.0 ([LICENSE](LICENSE)).\n- **Weights:** a derivative of the CircleStone Model, under the CircleStone Labs Non-Commercial License v1.2\n  (see the model cards, e.g. [v1a](https:\u002F\u002Fhuggingface.co\u002F0ppxnhximxr\u002Fsnapref-v1a)). Images generated with Anima are\n  subject to that license as well. Not affiliated with or endorsed by CircleStone Labs.\n","SnapRef 是一个面向 Anima 文生图模型的单图参考适配器，支持仅用一张角色图像即可实现跨姿态、跨场景的一致性生成。其核心采用非对称注意力机制与参考键值缓存（reference K\u002FV cache），可精准复用参考图中的外观特征（如发型、瞳色、服饰）和艺术风格，同时解耦风格控制逻辑（支持 mode char 模式下由基础模型或提示词主导风格）。项目提供完整训练、数据生成与评估代码，兼容 ComfyUI 自定义节点，适用于角色一致性可控生成、IP形象延展、多视角角色合成等需要强视觉保真度的创作场景。",2,"2026-11-24 04:39:18","CREATED_QUERY"]