Skip to content

Commit 2714043

Browse files
committed
remove warning.
1 parent 473bbad commit 2714043

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/diffusers/loaders/lora_base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,6 @@ def set_adapters(
564564
for adapter_name, weights in zip(adapter_names, adapter_weights):
565565
if isinstance(weights, dict):
566566
component_adapter_weights = weights.pop(component, None)
567-
568-
if component_adapter_weights is not None and not hasattr(self, component):
569-
logger.warning(
570-
f"Lora weight dict contains {component} weights but will be ignored because pipeline does not have {component}."
571-
)
572-
573567
if component_adapter_weights is not None and component not in invert_list_adapters[adapter_name]:
574568
logger.warning(
575569
(

0 commit comments

Comments
 (0)