mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix Lora typings
This commit is contained in:
parent
4e90376d11
commit
ba1a934297
@ -767,6 +767,7 @@ class ONNXModelPatcher:
|
|||||||
if not layer_key.startswith(prefix):
|
if not layer_key.startswith(prefix):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
layer.to(dtype=torch.float32)
|
||||||
layer_key = layer_key.replace(prefix, "")
|
layer_key = layer_key.replace(prefix, "")
|
||||||
layer_weight = layer.get_weight().detach().cpu().numpy() * lora_weight
|
layer_weight = layer.get_weight().detach().cpu().numpy() * lora_weight
|
||||||
if layer_key is blended_loras:
|
if layer_key is blended_loras:
|
||||||
|
Loading…
Reference in New Issue
Block a user