Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/diffusers/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import copy
import os
import re
import warnings
Expand Down Expand Up @@ -381,8 +380,7 @@ def load_attn_procs(self, pretrained_model_name_or_path_or_dict: Union[str, Dict

# Create another `mapped_network_alphas` dictionary so that we can properly map them.
if network_alphas is not None:
network_alphas_ = copy.deepcopy(network_alphas)
for k in network_alphas_:
for k in list(network_alphas.keys()):
if k.replace(".alpha", "") in key:
mapped_network_alphas.update({attn_processor_key: network_alphas.pop(k)})

Expand Down