Update lora.py

This commit is contained in:
FNSpd 2023-03-21 14:53:51 +04:00 committed by GitHub
parent c84c9df737
commit 2f0181405f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,7 @@ def load_loras(names, multipliers=None):
def lora_forward(module, input, res):
input = devices.cond_cast_unet(input)
if len(loaded_loras) == 0:
return res