Commit Graph
12 Commits
Author SHA1 Message Date
alisson-anjos 2ab178f20c feat: Multi-Ref Sheet Builder — combine 1-5 ref images into the fixed 1536x1024 composite sheet
Same grid convention as the multi-ref LTX-2 LoRA training pipeline
(build_multiref_sheet.py): deterministic layout by ref count (1x1, 2x1,
3x1, 2x2, 3-top+2-bottom), 512x512 panels, centered onto a fixed
1536x1024 canvas regardless of how many refs are plugged in. Panel
order matches the image0/image1/... indexing used in training.
2026-07-14 10:59:34 +00:00
alisson-anjosandClaude Fable 5 74590b3169 feat: LTX Identity Transfer (Multiple Angles) — multi-view refs with per-view source_id
Copy of LTX Identity Transfer generalized to N reference blocks: reference_face_front
(required, sid 2, drives ArcFace projector) + optional reference_back_head (sid 3),
reference_body_front (sid 4), reference_side_profile (sid 5). Empty optional inputs are
omitted, matching the multi-view training's view-dropout. Distinct patch flags so it
never collides with the single-ref node.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 16:55:32 +00:00
alisson-anjosandClaude Opus 4.8 2987893262 1.10.4: remove CAN/AdaLN from the nodes — it degrades the video
Empirically the AdaLN (CAN) modulation destroys the generation; the identity gain came from the
overlap + projector + LoRA, not the CAN. Reverted the Identity Transfer node to overlap + projector,
unregistered the standalone CAN node (file kept).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 00:31:01 +00:00
alisson-anjosandClaude Opus 4.8 5ce4840242 Add LTX Identity CAN node: apply trained AdaLN identity modulation at inference
The ArcFace projector (appended text tokens) has ~0 impact (cross-attn can ignore them). CAN
injects identity into the self-attn AdaLN (shift+gate) of even blocks — a channel the model can't
ignore. Trained on top of the reference LoRA it lifts identity a lot (humo 0.52 -> 0.69) with no
first-frame leak. Node rebuilds CANModulation per even block from identity_adapters_*.safetensors
(can.<i>.*), extracts the reference ArcFace, and patches each even block's native forward with
shift_msa += dshift; gate_msa += tanh(dgate) — the exact training formula. Lazy imports; defensive
__init__. Weight-load + CAN forward validated headless; block patch untested in ComfyUI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 22:31:46 +00:00
alisson-anjosandClaude Opus 4.8 521c28a970 Add LTX Identity Gemma-Vision node (Caminho2): native-space identity conditioning
Feeds the reference image through the ALREADY-LOADED ComfyUI CLIP (LTX's own multimodal Gemma 3
vision) -> feature_extractor -> connector -> CONDITIONING. Identity is in Gemma's native space
(the reason foreign CLIP/DINO/ArcFace adapters fail on LTX); no reference latent (no copy-paste/
mask), no DiT surgery. Reuses the loaded CLIP (only loads a lightweight AutoProcessor for the
multimodal chat template). Mirrors ComfyUI-LTXVideo LTXVGemmaTextEncoderModel, run multimodally.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 11:59:23 +00:00
alisson-anjosandClaude Opus 4.8 ef64f26dfd Add LTX Identity Transfer node (IPT2V: overlap ref + source-phase RoPE)
- av_model model-patch: ref tokens at overlap positions + source_phase RoPE, sliced from output (not I2V)
- optional ArcFace projector (dropdown from loras, 'None' = overlap only), debug_log toggle, arcface auto-adjust
- bump 1.7.0 -> 1.8.0; deps: opencv-python, insightface==0.7.3, onnxruntime

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 17:08:14 +00:00
alisson-anjosandClaude Opus 4.8 13e663101e Add AMV Guide Builder node + bump to 1.7.0
BFSAmvGuideBuilder builds the keyframes+blank guide for the AMV av2av LoRA:
auto_scene / manual_indices / external_images, with audio-beat placement
(librosa beat_track, RMS-onset fallback) to sync cuts to the music. Adds
librosa to requirements.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 07:25:29 +00:00
alisson-anjosandClaude Opus 4.8 fe278c7bf9 Add BFSAnime2RealBerniniConditioning node
Pure v2v anime->real conditioning for the Bernini-R anime2real LoRA
(trained without reference). Mirrors training: guide -> source_id 1 on
both positive and negative, empty latent -> source_id 0, no source_id 2
and no amplify_reference (no reference to amplify; text-only CFG).

Reuses bernini_patches; registered in __init__.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 10:58:29 +00:00
alisson-anjosandClaude Opus 4.8 7e457ddc93 Add Head-Swap Bernini Conditioning + LoRA Debug nodes
Standalone head-swap nodes for the Bernini-R LoRA (Wan2.2-A14B):
- HeadSwapBerniniConditioning: guide video -> source_id 1, head image ->
  source_id 2; output follows the guide's native size, head keeps its own.
- HeadSwapLoRADebug: reports applied LoRA patch count on a MODEL.

Bundles the WanModel context_latents patch (vendored from ComfyUI-RH-Bernini,
GPL-3.0) so no external Bernini node package is required.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 08:08:13 +00:00
Alisson Anjos d1b2290c50 Add LTXV Edit Anything nodes 2026-05-10 17:21:30 +01:00
Alisson Anjos 724862df3f add FrameRangedFaceLoader 2026-03-19 08:20:51 +00:00
Alisson Anjos ed0e2f66fb initial commit 2026-03-17 08:43:45 +00:00