mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
feat: only override steps if metadata value is not in steps enum or in steps enum and performance is not the same
This commit is contained in:
@@ -96,7 +96,8 @@ def get_steps(key: str, fallback: str | None, source_dict: dict, results: list,
|
||||
h = source_dict.get(key, source_dict.get(fallback, default))
|
||||
assert h is not None
|
||||
h = int(h)
|
||||
if h not in set(item.value for item in Steps):
|
||||
# if not in steps or in steps and performance is not the same
|
||||
if h not in iter(Steps) or Steps(h).name.casefold() != source_dict.get('performance', '').replace(' ', '_').casefold():
|
||||
results.append(h)
|
||||
return
|
||||
results.append(-1)
|
||||
|
||||
Reference in New Issue
Block a user