update
This commit is contained in:
@@ -122,9 +122,13 @@ class ModelInfo(BaseModel):
|
||||
@computed_field
|
||||
@property
|
||||
def support_powerpaint_v2(self) -> bool:
|
||||
return self.model_type in [
|
||||
ModelType.DIFFUSERS_SD,
|
||||
]
|
||||
return (
|
||||
self.model_type
|
||||
in [
|
||||
ModelType.DIFFUSERS_SD,
|
||||
]
|
||||
and self.name != POWERPAINT_NAME
|
||||
)
|
||||
|
||||
|
||||
class Choices(str, Enum):
|
||||
@@ -215,7 +219,6 @@ class SDSampler(str, Enum):
|
||||
lcm = "LCM"
|
||||
|
||||
|
||||
|
||||
class PowerPaintTask(Choices):
|
||||
text_guided = "text-guided"
|
||||
context_aware = "context-aware"
|
||||
|
||||
Reference in New Issue
Block a user