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