mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 11:11:15 +00:00
always set empty cache signal as long as any patch happens
This commit is contained in:
@@ -346,6 +346,8 @@ class LoraLoader:
|
|||||||
|
|
||||||
# Patch
|
# Patch
|
||||||
|
|
||||||
|
memory_management.signal_empty_cache = True
|
||||||
|
|
||||||
for key, current_patches in (tqdm(self.patches.items(), desc=f'Patching LoRAs for {type(self.model).__name__}') if len(self.patches) > 0 else self.patches):
|
for key, current_patches in (tqdm(self.patches.items(), desc=f'Patching LoRAs for {type(self.model).__name__}') if len(self.patches) > 0 else self.patches):
|
||||||
try:
|
try:
|
||||||
parent_layer, child_key, weight = utils.get_attr_with_parent(self.model, key)
|
parent_layer, child_key, weight = utils.get_attr_with_parent(self.model, key)
|
||||||
|
|||||||
Reference in New Issue
Block a user