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

Method define_schema

iclora.py:472–496  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

470class LTXICLoRALoaderModelOnly(io.ComfyNode):
471 @classmethod
472 def define_schema(cls):
473 return io.Schema(
474 node_id="LTXICLoRALoaderModelOnly",
475 display_name=NODES_DISPLAY_NAME_PREFIX + " IC-LoRA Loader Model Only",
476 category="Lightricks/IC-LoRA",
477 description="Loads a LoRA model and extracts the latent_downscale_factor from the safetensors metadata.",
478 inputs=[
479 io.Model.Input("model"),
480 io.Combo.Input(
481 "lora_name",
482 options=folder_paths.get_filename_list("loras"),
483 ),
484 io.Float.Input(
485 "strength_model",
486 default=1.0,
487 min=-100.0,
488 max=100.0,
489 step=0.01,
490 ),
491 ],
492 outputs=[
493 io.Model.Output("model"),
494 io.Float.Output("latent_downscale_factor"),
495 ],
496 )
497
498 @classmethod
499 def execute(cls, model, lora_name, strength_model) -> io.NodeOutput:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected