Skip to content

Commit b4350c0

Browse files
docs(mm): document flux variant attr
1 parent 76e4487 commit b4350c0

File tree

1 file changed

+12
-0
lines changed
  • invokeai/backend/model_manager/configs

1 file changed

+12
-0
lines changed

invokeai/backend/model_manager/configs/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,18 @@ class Main_Checkpoint_FLUX_Config(Checkpoint_Config_Base, Main_Config_Base, Conf
264264
base: Literal[BaseModelType.Flux] = Field(default=BaseModelType.Flux)
265265

266266
variant: FluxVariantType = Field()
267+
# Prior to v6.8.0, we used an awkward combination of `config_path` and `variant` to distinguish between FLUX
268+
# variants.
269+
#
270+
# `config_path` was set to one of:
271+
# - flux-dev
272+
# - flux-dev-fill
273+
# - flux-schnell
274+
#
275+
# `variant` was set to ModelVariantType.Inpaint for FLUX Fill models and ModelVariantType.Normal for all other FLUX
276+
# models.
277+
#
278+
# We now use the `variant` field to directly represent the FLUX variant type, and `config_path` is no longer used.
267279

268280
@classmethod
269281
def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:

0 commit comments

Comments
 (0)