mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 04:42:09 -08:00
fix lora without backup
This commit is contained in:
parent
9617f15fd9
commit
3cdc26af30
1 changed files with 2 additions and 2 deletions
|
|
@ -397,7 +397,7 @@ def network_restore_weights_from_backup(self: Union[torch.nn.Conv2d, torch.nn.Li
|
|||
if weights_backup is None and bias_backup is None:
|
||||
return
|
||||
|
||||
if weights_backup is True or weights_backup == (True, True): # fake backup
|
||||
if shared.opts.lora_without_backup_weight:
|
||||
return
|
||||
|
||||
if weights_backup is not None:
|
||||
|
|
@ -567,7 +567,7 @@ def network_apply_weights(self: Union[torch.nn.Conv2d, torch.nn.Linear, torch.nn
|
|||
extra_network_lora.errors[net.name] = extra_network_lora.errors.get(net.name, 0) + 1
|
||||
|
||||
|
||||
if weights_backup is True or weights_backup == (True, True): # fake backup
|
||||
if shared.opts.lora_without_backup_weight:
|
||||
self.network_weights_backup = None
|
||||
self.network_bias_backup = None
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue