Merge branch 'main_upstream'

This commit is contained in:
Manuel Schmid 2024-06-21 20:25:50 +02:00
commit 0b876eec20
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 6 additions and 1 deletions

View File

@ -581,7 +581,8 @@ possible_preset_keys = {
"default_save_metadata_to_images": "default_save_metadata_to_images",
"checkpoint_downloads": "checkpoint_downloads",
"embeddings_downloads": "embeddings_downloads",
"lora_downloads": "lora_downloads"
"lora_downloads": "lora_downloads",
"default_vae": "vae"
}
REWRITE_PRESET = False

View File

@ -167,6 +167,10 @@ class Performance(Enum):
def values(cls) -> list:
return list(map(lambda c: c.value, cls))
@classmethod
def values(cls) -> list:
return list(map(lambda c: c.value, cls))
@classmethod
def by_steps(cls, steps: int | str):
return cls[Steps(int(steps)).name]