ComfyUI Node
Anima Concept Survey Model Patch
Observe Anima/Cosmos cross-attention token activation during sampling without editing attention output.
Anima Concept Survey Model Patch
- model
- clip
- model
◄modeobserve►
◄capture_leveltokens►
◄prompt_text►
◄concept_terms►
◄target_call_indicesall►
◄diagnostic_call_indicesall►
◄branch_modeboth►
◄max_tokens16►
◄max_steps0►
◄jsonl_pathanima_concept_survey/logs/survey.jsonl►
◄save_heatmapsfalse►
◄heatmap_diranima_concept_survey/heatmaps►
◄heatmap_outputconcepts_only►
◄max_logits_mib1024►
◄fail_modefallback►
Categorymodel_patches/anima
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| clip | CLIP | — | |
| mode | COMBO | observe | 2 options: observe, off |
| capture_level | COMBO | tokens | 3 options: summary, tokens, heatmap |
| prompt_text | STRING | Prompt text used to restore token text labels with the connected CLIP. | |
| concept_terms | STRING | Optional phrases to export as combined phrase heatmaps, one per line. Example: big breasts | |
| target_call_indices | STRING | all | — |
| diagnostic_call_indices | STRING | all | — |
| branch_mode | COMBO | both | 3 options: both, positive_only, negative_only |
| max_tokens | INT | 161–512 | — |
| max_steps | INT | 00–10000 | — |
| jsonl_path | STRING | anima_concept_survey/logs/survey.jsonl | Absolute .jsonl file, or relative .jsonl file under ComfyUI output directory. Empty disables JSONL output. |
| save_heatmaps | BOOLEAN | false | — |
| heatmap_dir | STRING | anima_concept_survey/heatmaps | Absolute directory, or relative directory under ComfyUI output directory. |
| heatmap_output | COMBO | concepts_only | Choose concepts_only for concept_terms phrase maps without unrelated top-token heatmaps. |
| max_logits_mib | FLOAT | 10241–65536 | — |
| fail_mode | COMBO | fallback | 2 options: fallback, raise |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |