Merge pull request #171 from nihedon/support_forge

Fixed bug where LoRA stopped working when HiRes was enabled.
main
hako-mikan 2024-10-06 11:46:09 +09:00 committed by GitHub
commit 1c8a2b3dff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1170,7 +1170,8 @@ def lbwf(after_applying_lora_patches, ms, lwei, elements, starts, func_ratio):
new_hash = (hash[0], lbw_key, *hash[2:])
after_applying_lora_patches[new_hash] = after_applying_lora_patches[hash]
del after_applying_lora_patches[hash]
if new_hash != hash:
del after_applying_lora_patches[hash]
if len(errormodules) > 0:
print("Unknown modules:", errormodules)