mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Ruff format
This commit is contained in:
parent
ab0bfa709a
commit
0ccb304b8b
@ -138,7 +138,7 @@ class LoRAPatcherExt(ExtensionBase):
|
|||||||
# TODO: debug on lycoris
|
# TODO: debug on lycoris
|
||||||
lora_param_weight = lora_param_weight.reshape(module_param.shape)
|
lora_param_weight = lora_param_weight.reshape(module_param.shape)
|
||||||
|
|
||||||
lora_param_weight *= (lora_weight * layer_scale)
|
lora_param_weight *= lora_weight * layer_scale
|
||||||
module_param += lora_param_weight.to(dtype=dtype)
|
module_param += lora_param_weight.to(dtype=dtype)
|
||||||
|
|
||||||
layer.to(device=TorchDevice.CPU_DEVICE)
|
layer.to(device=TorchDevice.CPU_DEVICE)
|
||||||
|
Loading…
Reference in New Issue
Block a user