mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
chore: make steps enums more strict
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
from enum import Enum
|
from enum import IntEnum, Enum
|
||||||
|
|
||||||
disabled = 'Disabled'
|
disabled = 'Disabled'
|
||||||
enabled = 'Enabled'
|
enabled = 'Enabled'
|
||||||
@@ -93,13 +93,13 @@ lora_count_with_lcm = lora_count + 1
|
|||||||
controlnet_image_count = 4
|
controlnet_image_count = 4
|
||||||
|
|
||||||
|
|
||||||
class Steps(Enum):
|
class Steps(IntEnum):
|
||||||
QUALITY = 60
|
QUALITY = 60
|
||||||
SPEED = 30
|
SPEED = 30
|
||||||
EXTREME_SPEED = 8
|
EXTREME_SPEED = 8
|
||||||
|
|
||||||
|
|
||||||
class StepsUOV(Enum):
|
class StepsUOV(IntEnum):
|
||||||
QUALITY = 36
|
QUALITY = 36
|
||||||
SPEED = 18
|
SPEED = 18
|
||||||
EXTREME_SPEED = 8
|
EXTREME_SPEED = 8
|
||||||
|
|||||||
Reference in New Issue
Block a user