diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index 98aac49af..01902b376 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -14,7 +14,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): def refresh(self): shared.refresh_checkpoints() - def list_reference(self): + def list_reference(self): # pylint: disable=inconsistent-return-statements if shared.backend != shared.Backend.DIFFUSERS: return [] reference_models = shared.readfile(os.path.join('html', 'reference.json')) diff --git a/modules/ui_extra_networks_hypernets.py b/modules/ui_extra_networks_hypernets.py index 2fde91634..28189dad4 100644 --- a/modules/ui_extra_networks_hypernets.py +++ b/modules/ui_extra_networks_hypernets.py @@ -13,7 +13,6 @@ class ExtraNetworksPageHypernetworks(ui_extra_networks.ExtraNetworksPage): def list_items(self): for name, path in shared.hypernetworks.items(): try: - fn = os.path.splitext(path)[0] name = os.path.relpath(os.path.splitext(path)[0], shared.opts.hypernetwork_dir) yield { "type": 'Hypernetwork',