mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 18:51:31 +00:00
Improve model filtering (#114)
This commit is contained in:
@@ -108,7 +108,10 @@ class LegacyPreprocessor(Preprocessor):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
for k, v in legacy_preprocessors.items():
|
for name, data in legacy_preprocessors.items():
|
||||||
p = LegacyPreprocessor(v)
|
p = LegacyPreprocessor(data)
|
||||||
p.name = k
|
p.name = name
|
||||||
|
# Invert should not match any particular model.
|
||||||
|
if "invert" in name:
|
||||||
|
p.model_filename_filters = []
|
||||||
add_supported_preprocessor(p)
|
add_supported_preprocessor(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user