Revert "Fixed bug where LoRA stopped working when HiRes was enabled."

This reverts commit 308c96d13c.
pull/171/head
takahiro-nihei 2024-10-05 19:27:23 +09:00
parent 308c96d13c
commit 278c364fd6
1 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import os
import gc
import re
import sys
import copy
import torch
import shutil
import math
@ -1144,7 +1143,6 @@ def lbw(lora,lwei,elemental):
LORAS = ["lora", "loha", "lokr"]
def lbwf(after_applying_lora_patches, ms, lwei, elements, starts, func_ratio):
after_applying_lora_patches = copy.deepcopy(after_applying_lora_patches)
errormodules = []
dict_lora_patches = dict(after_applying_lora_patches.items())
for m, l, e, s, hash in zip(ms, lwei, elements, starts, list(shared.sd_model.forge_objects.unet.lora_patches.keys())):