Update legacy_preprocessor_loader.py

This commit is contained in:
lllyasviel
2024-01-28 15:54:52 -08:00
parent 20c785705f
commit aa296b1655

View File

@@ -28,7 +28,7 @@ for k in ui_preprocessor_keys:
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)
p.legacy_unload_function = cn_preprocessor_unloadable.get(real_key, lambda: None)
legacy_preprocessors[k] = p