mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-09 09:29:57 +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
|
||||
|
||||
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):
|
||||
try:
|
||||
parent_layer, child_key, weight = utils.get_attr_with_parent(self.model, key)
|
||||
|
||||
Reference in New Issue
Block a user