The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Improve LTXV IC-lora detection (#15073)
Jukka Seppänen6f6c500c1596
diff --git a/comfy_extras/nodes_lt.py b/comfy_extras/nodes_lt.pyindex 85d76ecef..044d82cc8 100644--- a/comfy_extras/nodes_lt.py+++ b/comfy_extras/nodes_lt.py@@ -50,8 +50,8 @@ class GetICLoRAParameters(io.ComfyNode):factor = 1if metadata:try:- factor = max(1, round(float(metadata.get("reference_downscale_factor", 1))))- except (TypeError, ValueError):+ factor = max(1, round(float(next(v for k, v in metadata.items() if k.endswith("reference_downscale_factor")))))+ except (StopIteration, TypeError, ValueError):factor = 1parameters = {"reference_downscale_factor": factor}return io.NodeOutput(parameters)