ver21
hako-mikan 2025-01-10 20:23:51 +09:00
parent d477c7698f
commit 7fffdd0ba9
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ def merge_lora_models(models, ratios, sets, locon, calc_precision):
ratio = ratios[blockfromkey(key, keylist, isv2)]
#print(key,blockfromkey(key, keylist, isv2))
if "same to Strength" in sets:
ratio, fugou = (ratio ** 0.5, 1) if ratio > 0 else (abs(ratio) ** 0.5, -1)