Nodes/Anima-coceptattention-survey-for-comfyui/Anima Concept Survey Model Patch
ComfyUI Node

Anima Concept Survey Model Patch

Observe Anima/Cosmos cross-attention token activation during sampling without editing attention output.

By Shiba-2-shiba·Created 3 months ago·Updated 2 months ago· 2
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)

NameTypeDefaultDescription
modelMODEL
clipCLIP
modeCOMBOobserve2 options: observe, off
capture_levelCOMBOtokens3 options: summary, tokens, heatmap
prompt_textSTRINGPrompt text used to restore token text labels with the connected CLIP.
concept_termsSTRINGOptional phrases to export as combined phrase heatmaps, one per line. Example: big breasts
target_call_indicesSTRINGall
diagnostic_call_indicesSTRINGall
branch_modeCOMBOboth3 options: both, positive_only, negative_only
max_tokensINT161–512
max_stepsINT00–10000
jsonl_pathSTRINGanima_concept_survey/logs/survey.jsonlAbsolute .jsonl file, or relative .jsonl file under ComfyUI output directory. Empty disables JSONL output.
save_heatmapsBOOLEANfalse
heatmap_dirSTRINGanima_concept_survey/heatmapsAbsolute directory, or relative directory under ComfyUI output directory.
heatmap_outputCOMBOconcepts_onlyChoose concepts_only for concept_terms phrase maps without unrelated top-token heatmaps.
max_logits_mibFLOAT10241–65536
fail_modeCOMBOfallback2 options: fallback, raise

Outputs (1)

NameTypeDescription
modelMODEL