This commit is contained in:
2026-04-19 20:33:18 +08:00
parent 692643136f
commit 67c584b4df
123 changed files with 11898 additions and 4082 deletions

View File

@@ -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">