mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-06 13:39:51 +00:00
Update legacy_preprocessor_loader.py
This commit is contained in:
@@ -24,7 +24,9 @@ for k in ui_preprocessor_keys:
|
||||
p = LegacyPreprocessor()
|
||||
p.name = k
|
||||
real_key = reverse_preprocessor_aliases.get(k, k)
|
||||
assert real_key in cn_preprocessor_modules
|
||||
if real_key not in cn_preprocessor_modules:
|
||||
print(f'bad key {real_key}')
|
||||
continue
|
||||
p.legacy_call_function = cn_preprocessor_modules[real_key]
|
||||
p.legacy_unload_function = cn_preprocessor_unloadable.get(real_key, None)
|
||||
legacy_preprocessors[k] = p
|
||||
|
||||
Reference in New Issue
Block a user