Use correct v list

This commit is contained in:
Kohaku-Blueleaf 2025-04-08 18:48:58 +08:00
parent a220e5ca80
commit ff050275ab

View File

@ -90,7 +90,7 @@ class LoRAAdapter(WeightAdapterBase):
intermediate_dtype=torch.float32, intermediate_dtype=torch.float32,
original_weight=None, original_weight=None,
): ):
v = self.weights[1] v = self.weights
mat1 = comfy.model_management.cast_to_device( mat1 = comfy.model_management.cast_to_device(
v[0], weight.device, intermediate_dtype v[0], weight.device, intermediate_dtype
) )