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
feat(webv2): promote the video model field above the prompt
Lincoln Steine36aae5255e4
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 419696bf93..a9dc3aa987 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -3083,9 +3083,9 @@"frames": "Frames","framesDuration": "{{seconds}} s at the current frame rate","mainModel": "Model",- "model": "Model","modelRequired": "Select a Wan 2.2 or MiniMax H3 model.","randomizeSeed": "Random",+ "render": "Render","seed": "Seed","selectModel": "Select a video model…","settingsAdjusted": "Settings adjusted",diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsxindex f961dce97c..1a585d66fe 100644--- a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx@@ -325,6 +325,30 @@ export const VideoWidgetView = () => {values={values}/>+ {/* Tier-1, like Generate's model card: which model you are running is the+ choice every field below is conditioned on, so it sits above the+ prompt rather than inside a collapsed section. */}+ {/* `px` matches the inset the prompt block and every section body carry,+ so the picker lines up with the fields below it — Generate's card can+ skip it only because its neighbours sit flush too. */}+ <Stack gap="1" px="2" py="1">+ <Field+ error={values.model ? undefined : t('widgets.video.modelRequired')}+ hint="model"+ label={t('widgets.video.mainModel')}+ >+ <ModelSelect+ filter={isVideoModelSelectable}+ invalid={!values.model}+ modelTypes={MAIN_MODEL_TYPES}+ placeholder={t('widgets.video.selectModel')}+ size="xs"+ value={values.model?.key ?? null}+ onChange={selectMainModel}+ />+ </Field>+ </Stack>+<VideoPromptFieldsloras={values.loras}model={values.model}@@ -464,22 +488,9 @@ export const VideoWidgetView = () => {</Stack></GenerationSettingsSection>- <GenerationSettingsSection label={t('widgets.video.model')} sectionId="video-model" defaultOpen>+ {/* Sampling and variation — how the model renders, not which model it is. */}+ <GenerationSettingsSection label={t('widgets.video.render')} sectionId="video-render" defaultOpen><Stack gap="3" p="2">- <Field- error={values.model ? undefined : t('widgets.video.modelRequired')}- label={t('widgets.video.mainModel')}- >- <ModelSelect- filter={isVideoModelSelectable}- invalid={!values.model}- modelTypes={MAIN_MODEL_TYPES}- placeholder={t('widgets.video.selectModel')}- size="xs"- value={values.model?.key ?? null}- onChange={selectMainModel}- />- </Field>{policy.ui.accelerator && values.model ? (<FieldhelpText={t('widgets.video.acceleratorHelp', {