scenario-wan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScenario Wan Video
Scenario Wan 视频
Overview
概述
Wan, Alibaba's video family on Scenario, ships each job as its own member, and members a generation apart disagree on parameter names, not just numbers: pick the member with , then treat as the contract before every run. Wan 2.7 Image is an image model, covered by the skill.
searchmodel_schema_getscenario-imageConnection and the core loop: see the skill in this repo; model-agnostic video work: the skill. If a sibling skill named here is missing from your available skills, ask the user to install it (); unattended, proceed from tool schemas and flag the gap.
scenarioscenario-videonpx skills add scenario-labs/skills --skill <name>Wan是阿里巴巴在Scenario上的视频模型系列,每个任务对应一个独立的模型成员,不同代的成员之间不仅参数数值不同,参数名称也存在差异:使用选择对应模型成员,每次运行前请以返回的schema为准。Wan 2.7 Image是图像模型,由技能覆盖。
searchmodel_schema_getscenario-image连接方式与核心流程:参见本仓库中的技能;模型无关的通用视频处理功能:参见技能。如果你的可用技能中缺少这里提到的同系列技能,请让用户安装(命令:);若处于无人值守状态,请根据工具schema继续操作并标注缺失项。
scenarioscenario-videonpx skills add scenario-labs/skills --skill <name>Quick reference
快速参考
Members by job (at authoring time):
| Job | Member | Required inputs |
|---|---|---|
| Text to video | 2.7, 2.6, 2.5 T2V | |
| Animate a still | 2.7, 2.6, 2.5 I2V | |
| Extend a clip | 2.7 I2V | |
| Restyle footage | 2.7 Video Edit | |
| Character performs a video's motion | 2.2 Animate (Move) | |
| Swap the person in footage | 2.2 Animate (Replace) | |
| Change aspect ratio | 2.2 Reframe | |
| Expand the canvas | 2.2 Outpainting | |
Parameters do not port across generations. At authoring time: the 2.7 generators take (720p or 1080p) and whole-second from 2 to 15, with (16:9 through 3:4) on T2V only. 2.6 and 2.5 T2V instead take one string such as , with from a fixed grid (5, 10, or 15 on 2.6; 5 or 10 on 2.5), while their I2V members take . Video Edit takes a 2 to 10 second source; its is optional and truncates. Reframe and Outpainting have no : length is (81 to 241) at (5 to 30), and output matches the source only when and are true (both default false). Outpainting guides new content with up to 10 .
resolutiondurationaspectRatiosize"1920*1080"durationresolutiondurationdurationnumFramesframesPerSecondmatchInputNumFramesmatchInputFramesPerSecondrefImageUrlsOn 2.7 I2V, and are mutually exclusive, and (last frame) is only valid alongside . Resolution and duration carry cost (1080p ran about triple 720p on 2.7 T2V at authoring time), so before batches.
imagevideoendImageimagedry_run按任务划分的模型成员(本文撰写时):
| 任务 | 模型成员 | 必填输入 |
|---|---|---|
| 文生视频 | 2.7, 2.6, 2.5 T2V | |
| 静态图动效生成 | 2.7, 2.6, 2.5 I2V | |
| 延长视频片段 | 2.7 I2V | |
| 视频素材重风格化 | 2.7 Video Edit | |
| 角色复刻视频动作 | 2.2 Animate (Move) | |
| 视频素材人物替换 | 2.2 Animate (Replace) | |
| 调整宽高比 | 2.2 Reframe | |
| 扩展画布 | 2.2 Outpainting | |
参数无法跨代通用。本文撰写时的参数情况:2.7生成器接受(720p或1080p)和2到15秒的整秒,其中(16:9到3:4)仅适用于T2V。2.6和2.5的T2V则接受单个字符串,例如,为固定档位(2.6为5、10或15秒;2.5为5或10秒),而它们的I2V成员使用参数。Video Edit需要2到10秒的源视频;其为可选参数,用于截断视频。Reframe和Outpainting没有参数:视频长度由(81到241)和(5到30)决定,只有当和均为true时,输出才会与源视频匹配(两者默认均为false)。Outpainting最多可使用10个引导新内容生成。
resolutiondurationaspectRatiosize"1920*1080"durationresolutiondurationdurationnumFramesframesPerSecondmatchInputNumFramesmatchInputFramesPerSecondrefImageUrls在2.7 I2V中,和是互斥的,(最后一帧)仅在传入时有效。分辨率和时长会影响成本(本文撰写时,2.7 T2V的1080p生成成本约为720p的三倍),因此批量生成前请先执行。
imagevideoendImageimagedry_runPrompt the member's job
各模型任务的Prompt编写说明
T2V wants a full scene in natural language: subject action, one camera move, lighting, style tags. I2V wants motion only: the still already fixes look and composition, so re-describing it wastes the prompt. Video Edit wants instructions, one clear change per sentence with a precise target, plus preservation language ("keep subject identity and camera path"); carries a target look. In-frame readable text is unreliable on every member; push artifacts into (Video Edit and Animate lack it).
referenceImagenegativePrompt2.6 alone does multi-shot: with true (the default, but active only while is true), open with a global style line, then , , keeping characters and location continuous. defaults true on the generators (helps thin prompts, adds latency) and false on Reframe and Outpainting.
multiShotsenablePromptExpansionShot 1 [0-3s] ...Shot 2 [3-7s] ...enablePromptExpansionT2V需要用自然语言描述完整场景:主体动作、单个镜头运动、光线、风格标签。I2V只需要描述动作:静态图已经固定了画面外观和构图,重复描述会浪费prompt额度。Video Edit需要指令式描述,每句话对应一个明确的修改,目标要精准,还要加上保留说明(例如“保持主体身份和镜头路径”);用于指定目标风格。所有模型成员都无法可靠生成画面内可读文字;请将瑕疵描述写入(Video Edit和Animate不支持该参数)。
referenceImagenegativePrompt只有2.6版本支持多镜头:当为true时(默认值为true,但仅在为true时生效),先写一行全局风格说明,然后按、的格式编写,保持角色和场景的连续性。生成类模型的默认为true(可丰富简略的prompt,但会增加延迟),Reframe和Outpainting的该参数默认为false。
multiShotsenablePromptExpansionShot 1 [0-3s] ...Shot 2 [3-7s] ...enablePromptExpansionWhere the audio comes from
音频来源说明
The 2.7 generators always deliver audio: upload an file to drive it, or omit it and a synced track is generated from whatever sound the prompt describes, so prompt the ambience you want. On 2.6 and 2.5, audio comes only from an uploaded file (3 to 30 seconds, 15 MB or less at authoring time), which 2.6 lip-syncs. Video Edit's decides the track: keeps the source audio, lets the model regenerate it. Animate carries the source track while stays true (the default).
audioaudioSettingoriginautomergeAudio2.7生成器始终会输出音频:你可以上传文件来驱动音频生成,若不上传,模型会根据prompt中描述的声音生成同步音轨,因此请在prompt中描述你想要的环境音。在2.6和2.5版本中,音频仅来自上传的文件(本文撰写时要求3到30秒,大小不超过15MB),2.6版本支持lip-sync。Video Edit的参数决定音轨来源:保留源音频,让模型重新生成音频。当为true(默认值)时,Animate会保留源音轨。
audioaudioSettingoriginautomergeAudioWorked example: bracket a shot between two stills
实操示例:在两张静态图之间生成视频片段
- with
search,target="models",query="wan image to video". Prefer the newest non-deprecated hit, e.g.public=true(a live hit at authoring time: re-discover each session).model_wan-2-7-i2v - with that id: exclusivity notes, caps, defaults.
model_schema_get - the opening and closing stills (see the
upload_assetskill) for asset ids.scenario - with that
model_run,model_id, anddry_run=truefor the cost estimate; re-estimate after changing duration or resolution.parameters={"prompt": "She turns from the window and walks toward the door, coat swaying; slow push-in. Room tone and distant traffic, no music.", "image": "asset_open", "endImage": "asset_close", "duration": 5, "resolution": "1080p"} - Re-run with , then
wait=falsewith the returned job id, re-called withjobs_waiton timeout, never a secondpending_job_ids.model_run - the output and review motion and audio together.
asset_display
- 调用,参数为
search、target="models"、query="wan image to video"。优先选择最新的未弃用结果,例如public=true(本文撰写时的有效结果:每次会话都需要重新查询)。model_wan-2-7-i2v - 用该模型ID调用:查看互斥说明、参数上限、默认值。
model_schema_get - 调用上传首尾静态图(参见
upload_asset技能),获取素材ID。scenario - 调用,传入
model_run、model_id和参数dry_run=true,用于估算成本;修改时长或分辨率后需要重新估算。parameters={"prompt": "她从窗边转身,走向门口,外套随风摆动;镜头缓慢推进。房间环境音和远处的车流声,无音乐。", "image": "asset_open", "endImage": "asset_close", "duration": 5, "resolution": "1080p"} - 将重新调用
wait=false,然后用返回的任务ID调用model_run,如果超时则用jobs_wait重新调用,切勿重复调用pending_job_ids。model_run - 用展示输出结果,同时检查动作和音频效果。
asset_display
Common mistakes
常见错误
- Combining with
imageon 2.7 I2V, or passingvideowithoutendImage: the schema forbids both.image - Porting a 2.7 payload to 2.6 or 2.5 T2V: they take (
sizestyle), not"1280*720"plusresolution, and off-grid durations fail.aspectRatio - Expecting Reframe or Outpainting to preserve length: defaults render 81 frames at 16 fps; set the two match flags.
- Outpainting's expand flags default to all four sides: set the unwanted directions (,
expandTop,expandBottom,expandLeft) to false.expandRight - Writing shot brackets with false:
enablePromptExpansionis inert without it; no other member reads brackets.multiShots - Re-describing the still or requesting content changes in an I2V prompt: I2V animates; Video Edit changes content.
- 在2.7 I2V中同时传入和
image,或者传入video但没有endImage:schema均不允许这两种情况。image - 将2.7的参数payload直接用于2.6或2.5 T2V:这两个版本使用(
size格式),而非"1280*720"加resolution,且非固定档位的时长会报错。aspectRatio - 期望Reframe或Outpainting保留原视频时长:默认设置下会以16fps渲染81帧;请设置两个匹配参数。
- Outpainting的扩展参数默认向四个方向扩展:请将不需要的方向(、
expandTop、expandBottom、expandLeft)设为false。expandRight - 在为false的情况下编写镜头时间括号:没有该参数时
enablePromptExpansion不会生效;其他模型成员都不识别时间括号。multiShots - 在I2V的prompt中重复描述静态图或要求修改内容:I2V仅负责生成动效;如需修改内容请使用Video Edit。