Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(ui): Flux 2 Model Manager default settings not showing Guidance (#8810)
blessedcoolantb811602b3818
diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/MainModelDefaultSettings/MainModelDefaultSettings.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/MainModelDefaultSettings/MainModelDefaultSettings.tsxindex 714d2a6b2a..4fa0f29beb 100644--- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/MainModelDefaultSettings/MainModelDefaultSettings.tsx+++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/MainModelDefaultSettings/MainModelDefaultSettings.tsx@@ -48,8 +48,8 @@ export const MainModelDefaultSettings = memo(({ modelConfig }: Props) => {const selectedModelKey = useAppSelector(selectSelectedModelKey);const { t } = useTranslation();- const isFlux = useMemo(() => {- return modelConfig.base === 'flux';+ const isFluxFamily = useMemo(() => {+ return ['flux', 'flux2'].includes(modelConfig.base);}, [modelConfig]);const defaultSettingsDefaults = useMainModelDefaultSettings(modelConfig);@@ -125,12 +125,12 @@ export const MainModelDefaultSettings = memo(({ modelConfig }: Props) => {<SimpleGrid columns={2} gap={8}><DefaultVae control={control} name="vae" />- {!isFlux && <DefaultVaePrecision control={control} name="vaePrecision" />}- {!isFlux && <DefaultScheduler control={control} name="scheduler" />}+ {!isFluxFamily && <DefaultVaePrecision control={control} name="vaePrecision" />}+ {!isFluxFamily && <DefaultScheduler control={control} name="scheduler" />}<DefaultSteps control={control} name="steps" />- {isFlux && <DefaultGuidance control={control} name="guidance" />}- {!isFlux && <DefaultCfgScale control={control} name="cfgScale" />}- {!isFlux && <DefaultCfgRescaleMultiplier control={control} name="cfgRescaleMultiplier" />}+ {isFluxFamily && <DefaultGuidance control={control} name="guidance" />}+ {!isFluxFamily && <DefaultCfgScale control={control} name="cfgScale" />}+ {!isFluxFamily && <DefaultCfgRescaleMultiplier control={control} name="cfgRescaleMultiplier" />}<DefaultWidth control={control} optimalDimension={optimalDimension} /><DefaultHeight control={control} optimalDimension={optimalDimension} /></SimpleGrid>