Revert "Fixed bug where LoRA stopped working when HiRes was enabled."
This reverts commit 308c96d13c.
pull/171/head
parent
308c96d13c
commit
278c364fd6
|
|
@ -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())):
|
||||
|
|
|
|||
Loading…
Reference in New Issue