From 6b7c43cd29a37f4f793011997451c723de86d733 Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Wed, 16 Sep 2026 14:14:20 +0100 Subject: [PATCH] fix(lora): resolve network names that carry a dot in the filename add_network keys available_networks by the basename with dots mangled to underscores, and create_item looked the name up in that table using the name as loaded, so any file with a dot in its stem missed and logged "not registered". The tag pass then dropped the network's own tags and used the filename instead. The lookup now falls back to the alias table, which already carries the natural basename and the subfolder path. --- modules/ui_extra_networks_lora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_extra_networks_lora.py b/modules/ui_extra_networks_lora.py index 0c3b0cace..0052217e6 100644 --- a/modules/ui_extra_networks_lora.py +++ b/modules/ui_extra_networks_lora.py @@ -91,7 +91,7 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage): return ver def create_item(self, name): - l = lora_load.available_networks.get(name) + l = lora_load.available_networks.get(name) or lora_load.available_network_aliases.get(name) # that table mangles dots in the stem to underscores; the aliases carry the natural basename and the subfolder path if l is None: log.warning(f'Networks: type=lora registered={len(list(lora_load.available_networks))} file="{name}" not registered') return None