mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(mm): move variant
to MainConfigBase
shoulda been here all along
This commit is contained in:
parent
2537d260e3
commit
0aa5aadfe8
@ -301,12 +301,13 @@ class MainConfigBase(ModelConfigBase):
|
|||||||
default_settings: Optional[MainModelDefaultSettings] = Field(
|
default_settings: Optional[MainModelDefaultSettings] = Field(
|
||||||
description="Default settings for this model", default=None
|
description="Default settings for this model", default=None
|
||||||
)
|
)
|
||||||
|
variant: ModelVariantType = ModelVariantType.Normal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MainCheckpointConfig(CheckpointConfigBase, MainConfigBase):
|
class MainCheckpointConfig(CheckpointConfigBase, MainConfigBase):
|
||||||
"""Model config for main checkpoint models."""
|
"""Model config for main checkpoint models."""
|
||||||
|
|
||||||
variant: ModelVariantType = ModelVariantType.Normal
|
|
||||||
prediction_type: SchedulerPredictionType = SchedulerPredictionType.Epsilon
|
prediction_type: SchedulerPredictionType = SchedulerPredictionType.Epsilon
|
||||||
upcast_attention: bool = False
|
upcast_attention: bool = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user