feat: 单镜视频生成支持手动选择输入模式
This commit is contained in:
1 parent
f0c707eedd
commit
77ab525040
1 file changed
+22
-1
@@ -119,6 +119,7 @@ const generationCatalog = ref<GenerationModelCatalog | null>(null)
|
||||
const generationCatalogError = ref('')
|
||||
const videoProvider = ref('')
|
||||
const videoGenerationOptions = ref<GenerationOptions>({})
|
||||
const videoInputModeOverride = ref<'auto' | 'first_frame' | 'omni_reference'>('auto')
|
||||
const projectAspectRatio = ref<CreativeProfileAspectRatio>('9:16')
|
||||
|
||||
/** 单镜手动生成默认继承项目配置,用户修改只作用于本次请求。 */
|
||||
@@ -258,7 +259,10 @@ async function generateVideo() {
|
||||
await runOperation(props.projectId, `提交镜头 ${props.shot.shotNo} 视频质量任务`, async () => {
|
||||
const result = await productionApi.generateQualityVideo(shotId, {
|
||||
provider: videoProvider.value || undefined,
|
||||
inputMode: videoInputPlan.value?.inputMode,
|
||||
inputMode:
|
||||
videoInputModeOverride.value === 'auto'
|
||||
? videoInputPlan.value?.inputMode
|
||||
: videoInputModeOverride.value,
|
||||
generationOptions: videoGenerationOptions.value,
|
||||
maxRepairAttempts: 2,
|
||||
allowedTexts: []
|
||||
@@ -658,6 +662,23 @@ async function inspectSpecs() {
|
||||
@update:provider="videoProvider = $event"
|
||||
@update:options="videoGenerationOptions = $event"
|
||||
/>
|
||||
<div class="mt-3">
|
||||
<p class="mb-2 text-xs font-medium">输入模式</p>
|
||||
<NSelect
|
||||
:value="videoInputModeOverride"
|
||||
:disabled="assetBlocked"
|
||||
:options="[
|
||||
{
|
||||
label: `自动(推荐:${videoInputPlan?.inputMode === 'omni_reference' ? '全模态参考' : '首帧模式'})`,
|
||||
value: 'auto'
|
||||
},
|
||||
{ label: '首帧模式', value: 'first_frame' },
|
||||
{ label: '全模态参考', value: 'omni_reference' }
|
||||
]"
|
||||
@update:value="videoInputModeOverride = $event"
|
||||
/>
|
||||
<p class="mt-1 text-xs text-muted">自动模式遵循后端 Planner;手动选择只影响当前镜头本次生成。</p>
|
||||
</div>
|
||||
</section>
|
||||
<NAlert v-else-if="generationCatalogError" type="warning" :show-icon="false" class="mt-4 text-xs">
|
||||
生成模型目录读取失败:{{ generationCatalogError }}
|
||||
|
||||
Reference in new issue
Block a user