mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 18:51:31 +00:00
reduce prints
This commit is contained in:
@@ -336,8 +336,6 @@ class LoraLoader:
|
|||||||
|
|
||||||
self.dirty = False
|
self.dirty = False
|
||||||
|
|
||||||
execution_start_time = time.perf_counter()
|
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
|
|
||||||
memory_management.signal_empty_cache = True
|
memory_management.signal_empty_cache = True
|
||||||
@@ -426,16 +424,14 @@ class LoraLoader:
|
|||||||
|
|
||||||
utils.set_attr_raw(self.model, key, torch.nn.Parameter(weight, requires_grad=False))
|
utils.set_attr_raw(self.model, key, torch.nn.Parameter(weight, requires_grad=False))
|
||||||
|
|
||||||
# Time
|
# End
|
||||||
|
|
||||||
set_parameter_devices(self.model, parameter_devices=parameter_devices)
|
set_parameter_devices(self.model, parameter_devices=parameter_devices)
|
||||||
|
|
||||||
moving_time = time.perf_counter() - execution_start_time
|
|
||||||
|
|
||||||
if len(self.patches) > 0:
|
if len(self.patches) > 0:
|
||||||
if self.online_mode:
|
if self.online_mode:
|
||||||
print(f'Patching LoRA on-the-fly in {moving_time:.2f} seconds.')
|
print(f'Patched LoRAs on-the-fly; ', end='')
|
||||||
else:
|
else:
|
||||||
print(f'Patching LoRA by precomputing model weights in {moving_time:.2f} seconds.')
|
print(f'Patched LoRAs by precomputing model weights; ', end='')
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user