1
This commit is contained in:
@@ -66,9 +66,9 @@ const ACTION_GENERATION_MODE_OPTIONS = [
|
||||
{ label: '方案一:直接生成精灵表', value: 'direct-sheet' },
|
||||
{ label: '方案二:图生视频后抽帧', value: 'image-to-video' },
|
||||
];
|
||||
const FIXED_IMAGE_TO_VIDEO_MODEL = 'wan2.2-kf2v-flash';
|
||||
const FIXED_IMAGE_TO_VIDEO_RESOLUTION = '480P';
|
||||
const FIXED_IMAGE_TO_VIDEO_DURATION_SECONDS = 5;
|
||||
const FIXED_IMAGE_TO_VIDEO_MODEL = 'doubao-seedance-2-0-fast-260128';
|
||||
const FIXED_IMAGE_TO_VIDEO_RESOLUTION = '480p';
|
||||
const FIXED_IMAGE_TO_VIDEO_DURATION_SECONDS = 4;
|
||||
|
||||
function mapActionTemplateIdToAnimationState(
|
||||
actionTemplateId: QwenSpriteActionTemplateId,
|
||||
@@ -420,7 +420,6 @@ export default function QwenSpriteSheetTool() {
|
||||
setSheetStatus(null);
|
||||
try {
|
||||
if (actionGenerationMode === 'image-to-video') {
|
||||
const isLoopAction = actionTemplate.loop;
|
||||
const result = await generateCharacterAnimationDraft({
|
||||
characterId: assetKey || 'qwen-sprite-tool',
|
||||
strategy: 'image-to-video',
|
||||
@@ -429,15 +428,16 @@ export default function QwenSpriteSheetTool() {
|
||||
visualSource: selectedMasterSource,
|
||||
referenceImageDataUrls: [],
|
||||
referenceVideoDataUrls: [],
|
||||
lastFrameImageDataUrl: isLoopAction ? undefined : selectedMasterSource,
|
||||
lastFrameImageDataUrl: selectedMasterSource,
|
||||
frameCount: 16,
|
||||
fps: actionTemplate.defaultFps,
|
||||
durationSeconds: FIXED_IMAGE_TO_VIDEO_DURATION_SECONDS,
|
||||
loop: actionTemplate.loop,
|
||||
useChromaKey,
|
||||
resolution: isLoopAction ? '720P' : FIXED_IMAGE_TO_VIDEO_RESOLUTION,
|
||||
resolution: FIXED_IMAGE_TO_VIDEO_RESOLUTION,
|
||||
ratio: '1:1',
|
||||
imageSequenceModel: 'wan2.7-image-pro',
|
||||
videoModel: isLoopAction ? 'wan2.6-i2v-flash' : FIXED_IMAGE_TO_VIDEO_MODEL,
|
||||
videoModel: FIXED_IMAGE_TO_VIDEO_MODEL,
|
||||
referenceVideoModel: 'wan2.7-r2v',
|
||||
motionTransferModel: 'wan2.2-animate-move',
|
||||
});
|
||||
@@ -775,7 +775,7 @@ export default function QwenSpriteSheetTool() {
|
||||
{actionGenerationMode === 'image-to-video' ? (
|
||||
<>
|
||||
<div className="rounded-xl border border-white/10 bg-black/20 px-4 py-3 text-xs leading-relaxed text-zinc-400">
|
||||
当前走图生视频方案:工具会自动把主图送进官方图生视频模型 `wan2.2-kf2v-flash`,固定按 `480P` 生成,再自动抽成 16 帧精灵表。
|
||||
当前走图生视频方案:工具会自动把主图送进官方首尾帧视频模型 `doubao-seedance-2-0-fast-260128`,固定按 `1:1 / 480p / 4 秒` 生成,再自动抽成 16 帧精灵表。
|
||||
</div>
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<div className="rounded-xl border border-white/10 bg-black/20 px-4 py-3 text-sm text-zinc-300">
|
||||
|
||||
Reference in New Issue
Block a user