MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / LTXAddVideoICLoRAGuideAdvanced

Class LTXAddVideoICLoRAGuideAdvanced

iclora.py:261–466  ·  view source on GitHub ↗

Extended IC-LoRA guide node with per-guide attention strength control. Same as LTXAddVideoICLoRAGuide, but adds attention_strength and attention_mask inputs to control how strongly this guide's conditioning influences generation via self-attention.

Source from the content-addressed store, hash-verified

259
260@comfy_node(name="LTXAddVideoICLoRAGuideAdvanced")
261class LTXAddVideoICLoRAGuideAdvanced(LTXAddVideoICLoRAGuide):
262 """Extended IC-LoRA guide node with per-guide attention strength control.
263
264 Same as LTXAddVideoICLoRAGuide, but adds attention_strength and
265 attention_mask inputs to control how strongly this guide's conditioning
266 influences generation via self-attention.
267 """
268
269 @classmethod
270 def define_schema(cls):
271 return io.Schema(
272 node_id="LTXAddVideoICLoRAGuideAdvanced",
273 display_name=NODES_DISPLAY_NAME_PREFIX
274 + " Add Video IC-LoRA Guide Advanced",
275 category="Lightricks/IC-LoRA",
276 description=(
277 "Adds IC-LoRA guide conditioning with per-guide attention strength control. "
278 "Same as LTXAddVideoICLoRAGuide, but allows controlling how strongly this "
279 "guide influences generation via self-attention, optionally with a spatial mask."
280 ),
281 inputs=[
282 io.Conditioning.Input("positive"),
283 io.Conditioning.Input("negative"),
284 io.Vae.Input("vae"),
285 io.Latent.Input(
286 "latent",
287 tooltip="Video-only latent to condition. Must be a 5D video latent.",
288 ),
289 io.Image.Input("image"),
290 io.Int.Input(
291 "frame_idx",
292 default=0,
293 min=-9999,
294 max=9999,
295 tooltip=(
296 "Frame index to start the conditioning at. The value is rounded to the "
297 "nearest frame and wrapped modulo the number of video frames. Negative "
298 "values are counted from the end of the video before wrapping."
299 ),
300 ),
301 io.Float.Input("strength", default=1.0, min=0.0, max=1.0, step=0.01),
302 io.Float.Input(
303 "latent_downscale_factor",
304 default=1.0,
305 min=1.0,
306 max=10.0,
307 step=1.0,
308 tooltip="For IC-LoRA on small grid. 1 = original size, 2 = half, etc.",
309 ),
310 io.Combo.Input(
311 "crop",
312 options=["disabled", "center"],
313 default="disabled",
314 ),
315 io.Boolean.Input("use_tiled_encode", default=False),
316 io.Int.Input("tile_size", default=256, min=64, max=512, step=32),
317 io.Int.Input("tile_overlap", default=64, min=16, max=256, step=16),
318 io.Float.Input(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected