(cls)
| 470 | class 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: |
nothing calls this directly
no outgoing calls
no test coverage detected