Skip to content

Commit 2c3e4ea

Browse files
committed
fix
1 parent c7020df commit 2c3e4ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/components_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from collections import OrderedDict
1616
from itertools import combinations
1717
from typing import List, Optional, Union, Dict, Any
18+
import copy
1819

1920
import torch
2021
import time
@@ -342,7 +343,7 @@ def get_model_info(self, name: str, fields: Optional[Union[str, List[str]]] = No
342343

343344
# Check for IP-Adapter scales
344345
if hasattr(component, "_load_ip_adapter_weights") and hasattr(component, "attn_processors"):
345-
processors = component.attn_processors
346+
processors = copy.deepcopy(component.attn_processors)
346347
# First check if any processor is an IP-Adapter
347348
processor_types = [v.__class__.__name__ for v in processors.values()]
348349
if any("IPAdapter" in ptype for ptype in processor_types):

0 commit comments

Comments
 (0)