mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-10 23:49:48 +00:00
prevent undoing refresh model load params (#2092)
Ensures `should_refresh_model_loading_params()` is called when needed. Improved code clarity.
This commit is contained in:
@@ -250,7 +250,7 @@ def checkpoint_change(ckpt_name:str, save=True, refresh=True):
|
||||
|
||||
|
||||
def modules_change(module_values:list, save=True, refresh=True) -> bool:
|
||||
""" module values may be provided as file paths or as simply the module names """
|
||||
""" module values may be provided as file paths, or just the module names. Returns True if modules changed. """
|
||||
modules = []
|
||||
for v in module_values:
|
||||
module_name = os.path.basename(v) # If the input is a filepath, extract the file name
|
||||
|
||||
Reference in New Issue
Block a user