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(webv2): refuse an Initial Video drop the anchor cannot follow, and say why
Lincoln Stein6ec6c9e6ed20
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 6df1b51204..640aa2bc8f 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -3164,8 +3164,8 @@"referenceConditioningVideoAudio": "Video + audio","referenceDetailMatch": "Match generation size","referenceDetailMax": "Max detail (2048px, slower)",- "referenceExtendCapFull": "No continuity reference added",- "referenceExtendCapFullDescription": "All 3 video reference slots are in use, so the extension has no reference sampling the initial video. Remove a video reference to add one.",+ "referenceExtendCapFull": "Initial video not set",+ "referenceExtendCapFullDescription": "All 3 video reference slots are in use, so there is no room for the continuity reference this clip needs. Remove a video reference, then drop the clip again.","referenceExtendHelp": "The generated video is appended to this clip at its End Frame. A linked video reference samples up to the last ~5 seconds before that cutpoint for continuity — never more than the generated clip's own length, since the model discards the overrun at the seam. Its trim re-derives whenever the cutpoints or the frame count change.","referenceFromInitialVideo": "Initial video","references": "References",diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoSourceClipField.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoSourceClipField.tsxindex 3fa8294261..7c58f9c915 100644--- a/invokeai/frontend/webv2/src/features/video/ui/VideoSourceClipField.tsx+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoSourceClipField.tsx@@ -377,6 +377,13 @@ export const VideoSourceClipField = memo() : null}{sourceVideo ? (<Stack gap="2">+ {/* The empty-state slot shows the reason when no clip is set; with+ one set, the frozen trim sliders were the only symptom. */}+ {disabled && disabledReason ? (+ <Text color="fg.muted" fontSize="2xs" textWrap="pretty">+ {disabledReason}+ </Text>+ ) : null}<Field helpText={t('widgets.video.trimHelp')} label={t('widgets.video.trimStart')}><SliderNumberFieldariaLabel={t('widgets.video.trimStart')}diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsxindex ea6ce8828b..3685fc75a5 100644--- a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx@@ -315,14 +315,21 @@ export const VideoWidgetView = () => {);// Unchanged identity with a clip set means the video cap is full and- // no same-clip entry could be adopted: the extension would run with- // no continuity anchor at all, which deserves more than silence.+ // no same-clip entry could be adopted. REFUSE the whole drop: patching+ // the clip anyway produced an extension with no continuity anchor at+ // all, behind nothing but a toast -- and the cap gate then froze the+ // clip's trim sliders. (The gate cannot pre-empt this case: it can+ // only ask about the clip currently set, and this drop is a different+ // one.) Clearing is never refused -- removing the linked entry cannot+ // overflow anything.if (sourceVideo && references === values.references) {toaster.create({description: t('widgets.video.referenceExtendCapFullDescription'),title: t('widgets.video.referenceExtendCapFull'),type: 'warning',});++ return;}patch({ references, sourceVideo, ...(sourceVideo ? { firstFrameImage: null } : {}) });return;