Skip to content

Commit

Permalink
update lora changed
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Mandic <[email protected]>
  • Loading branch information
vladmandic committed Dec 31, 2024
1 parent f449768 commit 699ed3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lora/extra_networks_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def changed(self, requested: List[str], include: List[str], exclude: List[str]):
key = f'{",".join(include)}:{",".join(exclude)}'
loaded = sd_model.loaded_loras.get(key, [])
# shared.log.trace(f'Load network: type=LoRA key="{key}" requested={requested} loaded={loaded}')
if len(requested) != len(loaded):
if (len(requested) == 0) or (len(requested) != len(loaded)):
sd_model.loaded_loras[key] = requested
return True
for r, l in zip(requested, loaded):
Expand Down

0 comments on commit 699ed3a

Please sign in to comment.