From ff050275abf2606c224fbb853e0cf6588725c107 Mon Sep 17 00:00:00 2001 From: Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> Date: Tue, 8 Apr 2025 18:48:58 +0800 Subject: [PATCH] Use correct v list --- comfy/weight_adapter/lora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/weight_adapter/lora.py b/comfy/weight_adapter/lora.py index 9e00e9e6..89f56a45 100644 --- a/comfy/weight_adapter/lora.py +++ b/comfy/weight_adapter/lora.py @@ -90,7 +90,7 @@ class LoRAAdapter(WeightAdapterBase): intermediate_dtype=torch.float32, original_weight=None, ): - v = self.weights[1] + v = self.weights mat1 = comfy.model_management.cast_to_device( v[0], weight.device, intermediate_dtype )