Merge pull request #14655 from chi2nagisa/lora-alias-fix

[bug] fix using wrong model caused by alias
This commit is contained in:
AUTOMATIC1111 2024-01-20 10:27:54 +03:00 committed by GitHub
commit 0f2de4cfbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,11 +260,11 @@ def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn_dims=No
loaded_networks.clear()
networks_on_disk = [available_network_aliases.get(name, None) for name in names]
networks_on_disk = [available_networks.get(name, None) if name.lower() in forbidden_network_aliases else available_network_aliases.get(name, None) for name in names]
if any(x is None for x in networks_on_disk):
list_available_networks()
networks_on_disk = [available_network_aliases.get(name, None) for name in names]
networks_on_disk = [available_networks.get(name, None) if name.lower() in forbidden_network_aliases else available_network_aliases.get(name, None) for name in names]
failed_to_load_networks = []