diff --git a/modules/modelloader.py b/modules/modelloader.py index 649ff4aa9..8146620c5 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -430,7 +430,6 @@ def move_files(src_path: str, dest_path: str, ext_filter: str | None = None): def load_upscalers(): # We can only do this 'magic' method to dynamically load upscalers if they are referenced, so we'll try to import any _model.py files before looking in __subclasses__ t0 = time.time() - shared.sd_upscalers = ['None'] modules_dir = os.path.join(paths.script_path, "modules", "postprocess") for file in os.listdir(modules_dir): if "_model.py" in file: @@ -462,8 +461,7 @@ def load_upscalers(): except Exception as e: log.error(f'Upscaler: {cls} {e}') if len(upscalers) == 0: - log.warning('Upscalers: no data') - upscalers = ['None'] + log.error('Upscalers: no data') shared.sd_upscalers = upscalers t1 = time.time() log.info(f"Available Upscalers: items={len(shared.sd_upscalers)} downloaded={len([x for x in shared.sd_upscalers if x.data_path is not None and os.path.isfile(x.data_path)])} user={len([x for x in shared.sd_upscalers if x.custom])} time={t1-t0:.2f} types={upscaler_types}")