docs: record native ten-second Wan feasibility validation
This commit is contained in:
parent
ac4c0c15e5
commit
70b9d31788
@ -22,6 +22,8 @@
|
||||
|
||||
本轮部署与真实验证见[2026-11-11开发与验收记录](docs/开发与验收记录_20261111.md)。手册更新后可运行`python scripts/render_manuals.py`生成HTML,再构建前端发布;45秒配音版模板同目录另有`kunpeng-storyboard-45s.json`。
|
||||
|
||||
另有[单镜头超过5秒实测](docs/单镜头超过5秒实测报告_20261111.md):既有环境成功生成241帧、24fps、约10秒的原片和增强版;当前网页仍保留5秒上限,尚未正式开放10秒参数。
|
||||
|
||||
批量时段由API与GPU worker共读的`/workspace/projects/llm-services/config/runtime-policy.json`决定。`batch_window_enabled=false`为开发全天模式,`true`恢复北京时间21:00–08:00准入;开启时08:00关闭新镜头/新处理阶段准入,当前阶段自然完成,后续排队。文件热读取,样例见`deploy/runtime-policy.development.json`与`deploy/runtime-policy.production.json`。文件缺失默认启用限制,格式错误关闭新batch准入。`workflow_max_shots`默认120,可配置1–1000,只限制新草稿/运行/编排的准入。
|
||||
|
||||
Wan与其集成增强视为同一镜头。交互创作全天等待空闲资源;开发开关不绕过维护、手动暂停、额度和外部用户优先。关闭浏览器、SSE或HTTP连接不会取消持久任务,更不会停止共享Qwen服务。显式取消已发出的Qwen/Kokoro请求时等待当前响应再丢弃结果;完成状态未知则隔离本应用相应资源池,等待运维对账。
|
||||
|
||||
64
docs/单镜头超过5秒实测报告_20261111.md
Normal file
64
docs/单镜头超过5秒实测报告_20261111.md
Normal file
@ -0,0 +1,64 @@
|
||||
# 单镜头超过5秒:环境核验与实际生成报告
|
||||
|
||||
2026-11-11,Asia/Shanghai。结论:**当前环境已实测支持约10秒的单镜头文生视频**,包括原片和Real-ESRGAN空间增强;这不等于网页已经开放10秒,也不代表可无限延长。
|
||||
|
||||
## 当前条件
|
||||
|
||||
| 项目 | 实际配置 |
|
||||
| --- | --- |
|
||||
| GPU | 4张H100 80GB;本次使用空闲GPU2,另外三张有外部业务 |
|
||||
| 工作区容器 | 内存上限128GiB,共享内存8GiB |
|
||||
| 模型 | 本地Wan2.2-TI2V-5B,BF16;现有Real-ESRGAN |
|
||||
| 软件 | vLLM/Omni0.32.0,Torch2.13.0+cu130,Diffusers0.40.0,Transformers5.19.0 |
|
||||
| 执行 | 单卡TP1,module CPU offload,VAE tiling/slicing,原68GiB分配器预算与8GiB预留 |
|
||||
| 调度 | 既有单GPU任务队列和守护器;其他用户优先、占卡即让行规则保持 |
|
||||
|
||||
本地模型配置的VAE时间压缩比为4、空间压缩比16;Transformer patch为[1,2,2]、RoPE轴长度1024。241帧对应61个时间潜变量,位置表不会在121帧处截断。
|
||||
|
||||
官方[TI2V-5B配置](https://github.com/Wan-Video/Wan2.2/blob/main/wan/configs/wan_ti2v_5B.py)使用121帧、24fps、50步作为默认规格;[生成入口](https://github.com/Wan-Video/Wan2.2/blob/main/generate.py)允许传入4n+1帧。[Omni0.32的管线](https://github.com/vllm-project/vllm-omni/blob/v0.32.0/vllm_omni/diffusion/models/wan2_2/pipeline_wan2_2.py)按请求动态构造时间潜变量。因此121是本项目的服务保护上限和官方标准档位,不能当作架构硬上限;更长时长的质量与资源消耗仍需实测。
|
||||
|
||||
## 实验与结果
|
||||
|
||||
两项测试均通过原队列执行,batch=1、24fps、seed42、guidance5.0。同一提示词描述固定机位下的单艘红帆白船和海面,避免用多镜头叙事混淆连续时长。
|
||||
|
||||
| 测试 | 参数 | 结果 | 执行耗时 |
|
||||
| --- | --- | --- | --- |
|
||||
| 低成本通路 | 512×288、241帧、4步、不增强 | 成功;仅证明动态帧数通路 | 56.42秒 |
|
||||
| 当前源规格 | 1280×704、241帧、50步 | 原片成功,H264、24fps、10.041667秒 | 模型阶段约458.85秒,含加载/清理 |
|
||||
| 空间增强 | 上述同一原片→1920×1056 | 成功;仍为241帧、24fps、10.041667秒 | 增强阶段约288.79秒,含阶段交接 |
|
||||
|
||||
标准测试总执行**748.32秒,约12分28秒**,另有13.55秒排队;attempt=1、preemptions=0。阶段耗时由结果文件完成时间估算,不是GPU·秒。1920×1056保持原纵横比,尚未填边成标准1920×1080。
|
||||
|
||||
标准测试约1秒间隔采样707次,监测到GPU使用峰值**18.17GiB**、最低空闲61.01GiB。采样可能遗漏短暂尖峰,这也不是对其他型号/24GB卡的可用性保证;本次依赖上述H100、128GiB容器内存及CPU卸载条件。低成本测试未覆盖全部显存采样,不用于峰值结论。
|
||||
|
||||
## 单镜头与质量证据
|
||||
|
||||
- 既有adapter在一次实际`Omni.generate`请求中传入241帧,并检查模型返回帧数。没有通过拼接、插帧、循环或降低播放帧率来增加时长;增强仅逐帧提高空间分辨率。
|
||||
- 原片和增强版均通过ffprobe实际解码计数与FFmpeg完整解码:各241帧、24/1fps;各有241个不同的解码帧哈希。哈希不同不等于动作质量合格。
|
||||
- 浏览器实际播放、1/5/9.5秒定位均通过,没有页面或媒体错误。
|
||||
- 每秒抽帧审查显示帆船、岸线基本保持,未见明显场景切换;但船的横向运动较弱,开头有色调变化,未充分实现提示词中的航行动作。这里只验证一个简单文生场景,未做统计质量验收。
|
||||
|
||||

|
||||
|
||||
拼版按0至10秒排列,共11个采样;末格为空白,不是成片黑帧。增强版抽帧另见`qa/longshot-enhanced-contact.jpg`。
|
||||
|
||||
## 服务保护与当前开放范围
|
||||
|
||||
测试只对私有runner临时加入精确匹配实验提示词和161/241帧的白名单校验。网页API一直保持121帧,普通请求未放宽。测试结束已逐字节还原runner,SHA256为`0e3054b0385c8308e87626c5c1138b6714aa694ad500eaa0ecd903047176fd4a`。
|
||||
|
||||
没有升级环境、下载新模型、启动第二个GPU worker或改动GPU预算。网站API/前端、TTS、工作区、GPU守护器及共享Qwen两个容器的ID和启动时间全部与实验前相同。执行发生在白天,使用现有开发全天配置;没有调整服务器时间或伪造GPU状态。
|
||||
|
||||
**底层能力已验证到约10秒;当前网页的单镜头仍是1–5秒。** 如果正式开放,需要同时调整服务端帧数校验、能力输出、编辑器时长、工作流源帧数/复用校验和执行预算。单纯把页面输入上限改为10不完整。建议先做有明确上限的10秒实验档,保留默认5秒。
|
||||
|
||||
尚未验证15/30/60秒、10秒图生视频或鲲鹏复杂变形;不能据此承诺这些场景。长剧情仍需要分镜、参考形象和人工质量检查。
|
||||
|
||||
## 样片位置
|
||||
|
||||
当前管理员的“素材”中已保存:
|
||||
|
||||
- “单镜头10秒实测-720P原片.mp4”,素材`c1deafe1baa04c2db785f1d864578272`。
|
||||
- “单镜头10秒实测-1080P增强.mp4”,素材`344bfbfcdba04479814e2641488899de`。
|
||||
|
||||
可按“单镜头实测”标签查找。它们作为实验样片上传,未伪装成网站已支持的10秒生成任务。原片本机副本在`qa/generated/single-shot-10s-720p.mp4`,增强版为`qa/generated/single-shot-10s-enhanced.mp4`,视频不提交Git。
|
||||
|
||||
完整参数、帧数、文件哈希、采样与浏览器结果见`qa/longshot-validation-20261111.json`;原始监测位于服务器受保护目录`/root/cmvr-longshot-validation-20261111`。队列任务为`8b6de497a83c4acd91a1ec055a337eec`和`9b373f04c1ac463788ff54d99439963c`。
|
||||
6
qa/browser-longshot.cjs
Normal file
6
qa/browser-longshot.cjs
Normal file
@ -0,0 +1,6 @@
|
||||
const fs=require('fs'),path=require('path');const {chromium}=require('C:/Users/Administrator/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
|
||||
const root=path.resolve(__dirname,'..'),base='http://127.0.0.1:8000',file=path.join(root,'qa/longshot-validation-20261111.json');
|
||||
const env=Object.fromEntries(fs.readFileSync(path.join(root,'.env.server'),'utf8').split(/\r?\n/).filter(x=>x&&!x.startsWith('#')).map(x=>{const i=x.indexOf('=');return[x.slice(0,i),x.slice(i+1)]}));
|
||||
(async()=>{let browser;try{browser=await chromium.launch({headless:true,channel:'chrome'});const page=await browser.newPage(),errors=[];page.on('pageerror',e=>errors.push(e.message));await page.goto(base+'/login');await page.getByPlaceholder('输入你的账号').fill(env.ADMIN_USERNAME);await page.getByPlaceholder('输入密码',{exact:true}).fill(env.ADMIN_PASSWORD);await page.getByRole('button',{name:'进入工作空间'}).click();await page.waitForURL('**/create/image');const report=JSON.parse(fs.readFileSync(file,'utf8')),checks=[];
|
||||
for(const asset of report.website_assets){const result=await page.evaluate(async id=>{const v=document.createElement('video');v.src='/api/assets/'+id+'/content';v.muted=true;v.preload='auto';document.body.append(v);await new Promise((resolve,reject)=>{v.addEventListener('loadedmetadata',resolve,{once:true});v.addEventListener('error',()=>reject(new Error('Video metadata unavailable')),{once:true})});await v.play();const seeks=[];for(const t of [1,5,9.5]){await new Promise(resolve=>{v.addEventListener('seeked',resolve,{once:true});v.currentTime=t});seeks.push(v.currentTime)}v.pause();const out={duration:v.duration,width:v.videoWidth,height:v.videoHeight,seeks,error:v.error?.message||null};v.remove();return out},asset.id);if(Math.abs(result.duration-241/24)>.01||result.error||result.seeks.some((v,i)=>Math.abs(v-[1,5,9.5][i])>.2))throw new Error('Long-shot playback failed');checks.push({asset_id:asset.id,...result})}
|
||||
report.browser={checks,errors};fs.writeFileSync(file,JSON.stringify(report,null,2)+'\n');console.log(JSON.stringify(report.browser));}finally{if(browser)await browser.close()}})().catch(e=>{console.error(e.message);process.exitCode=1});
|
||||
13
qa/longshot-cleanup-20261111.json
Normal file
13
qa/longshot-cleanup-20261111.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"restored_sha256": "0e3054b0385c8308e87626c5c1138b6714aa694ad500eaa0ecd903047176fd4a",
|
||||
"probe241_rejected_after_restore": true,
|
||||
"ordinary121_accepted": true,
|
||||
"runtime_policy": {
|
||||
"schema_version": 1,
|
||||
"batch_window_enabled": false,
|
||||
"workflow_max_shots": 120
|
||||
},
|
||||
"web_max_frames": 121,
|
||||
"containers_unchanged": true,
|
||||
"sampler_finished": true
|
||||
}
|
||||
BIN
qa/longshot-enhanced-contact.jpg
Normal file
BIN
qa/longshot-enhanced-contact.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
BIN
qa/longshot-native-contact.jpg
Normal file
BIN
qa/longshot-native-contact.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
279
qa/longshot-validation-20261111.json
Normal file
279
qa/longshot-validation-20261111.json
Normal file
@ -0,0 +1,279 @@
|
||||
{
|
||||
"probe_status": "completed",
|
||||
"runner_restored": true,
|
||||
"jobs": [
|
||||
{
|
||||
"name": "temporal-path-241",
|
||||
"id": "8b6de497a83c4acd91a1ec055a337eec",
|
||||
"state": "succeeded",
|
||||
"execution_seconds": 56.42462706565857,
|
||||
"queue_seconds": 0.045176029205322266,
|
||||
"outputs": [
|
||||
{
|
||||
"programs": [],
|
||||
"stream_groups": [],
|
||||
"streams": [
|
||||
{
|
||||
"codec_name": "h264",
|
||||
"width": 512,
|
||||
"height": 288,
|
||||
"avg_frame_rate": "24/1",
|
||||
"duration": "10.041667",
|
||||
"nb_read_frames": "241"
|
||||
}
|
||||
],
|
||||
"format": {
|
||||
"duration": "10.041667",
|
||||
"size": "127421"
|
||||
},
|
||||
"path": "/workspace/outputs/llm-services/8b6de497a83c4acd91a1ec055a337eec/video_raw.mp4",
|
||||
"sha256": "4afe171b95d04674d816bcd081393149e2d59cc8c846ff87bbc4b9585270a2b7",
|
||||
"full_decode": "passed",
|
||||
"decoded_frames": 241,
|
||||
"unique_decoded_frame_hashes": 241,
|
||||
"contact_sheet": "/workspace/projects/llm-services/state/longshot-validation-20261111/temporal-path-241-0-contact.jpg"
|
||||
}
|
||||
],
|
||||
"gpu": {
|
||||
"index": 2,
|
||||
"uuid": "GPU-6f547b70-7a25-70cb-e134-888402be61e2",
|
||||
"sample_count": 9,
|
||||
"sample_interval_seconds": 1,
|
||||
"observed_peak_used_gib": 13.2275390625,
|
||||
"minimum_observed_free_gib": 65.9521484375
|
||||
},
|
||||
"request": {
|
||||
"task_type": "video.generate",
|
||||
"input": {
|
||||
"prompt": "A single continuous cinematic shot of one small white sailboat with a single red triangular sail gliding slowly from left to right across a calm blue sea at sunrise. Wide side view, fixed camera, stable distant coastline, gentle natural waves, consistent boat identity and lighting throughout, no cuts, no transitions, no time-lapse, no text.",
|
||||
"negative_prompt": "scene cut, transition, multiple boats, extra sails, flicker, distortion, blurry, text, watermark"
|
||||
},
|
||||
"parameters": {
|
||||
"width": 512,
|
||||
"height": 288,
|
||||
"num_frames": 241,
|
||||
"fps": 24,
|
||||
"num_inference_steps": 4,
|
||||
"guidance_scale": 5,
|
||||
"seed": 42,
|
||||
"upscale": false,
|
||||
"upscale_width": 1920,
|
||||
"upscale_height": 1056,
|
||||
"tile_size": 128
|
||||
},
|
||||
"timeout_seconds": 3600,
|
||||
"scheduling": {
|
||||
"execution_mode": "batch",
|
||||
"principal_id": "longshot-validation",
|
||||
"batch_id": "longshot-20261111",
|
||||
"policy_version": "night-v1"
|
||||
}
|
||||
},
|
||||
"attempt_count": 1,
|
||||
"preemptions": 0,
|
||||
"started_at": 1794359038.3979456,
|
||||
"finished_at": 1794359094.8225727,
|
||||
"phase_walltime_estimate_seconds": {
|
||||
"model_including_load_cleanup": 51.35104441642761
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "production-source-241",
|
||||
"id": "9b373f04c1ac463788ff54d99439963c",
|
||||
"state": "succeeded",
|
||||
"execution_seconds": 748.320020198822,
|
||||
"queue_seconds": 13.547385454177856,
|
||||
"outputs": [
|
||||
{
|
||||
"programs": [],
|
||||
"stream_groups": [],
|
||||
"streams": [
|
||||
{
|
||||
"codec_name": "h264",
|
||||
"width": 1280,
|
||||
"height": 704,
|
||||
"avg_frame_rate": "24/1",
|
||||
"duration": "10.041667",
|
||||
"nb_read_frames": "241"
|
||||
}
|
||||
],
|
||||
"format": {
|
||||
"duration": "10.041667",
|
||||
"size": "2326535"
|
||||
},
|
||||
"path": "/workspace/outputs/llm-services/9b373f04c1ac463788ff54d99439963c/video_raw.mp4",
|
||||
"sha256": "1e8c926e7a08331cf0432c844ae4735f0c81e7b71d4672c1c1d49e6c4a94aa2d",
|
||||
"full_decode": "passed",
|
||||
"decoded_frames": 241,
|
||||
"unique_decoded_frame_hashes": 241,
|
||||
"contact_sheet": "/workspace/projects/llm-services/state/longshot-validation-20261111/production-source-241-0-contact.jpg"
|
||||
},
|
||||
{
|
||||
"programs": [],
|
||||
"stream_groups": [],
|
||||
"streams": [
|
||||
{
|
||||
"codec_name": "h264",
|
||||
"width": 1920,
|
||||
"height": 1056,
|
||||
"avg_frame_rate": "24/1",
|
||||
"duration": "10.041667",
|
||||
"nb_read_frames": "241"
|
||||
}
|
||||
],
|
||||
"format": {
|
||||
"duration": "10.041667",
|
||||
"size": "57122544"
|
||||
},
|
||||
"path": "/workspace/outputs/llm-services/9b373f04c1ac463788ff54d99439963c/video_upscaled.mp4",
|
||||
"sha256": "c85d4c4194cf0630a1a79217c202289d58b12525157ad86081e83f796de655ed",
|
||||
"full_decode": "passed",
|
||||
"decoded_frames": 241,
|
||||
"unique_decoded_frame_hashes": 241,
|
||||
"contact_sheet": "/workspace/projects/llm-services/state/longshot-validation-20261111/production-source-241-1-contact.jpg"
|
||||
}
|
||||
],
|
||||
"gpu": {
|
||||
"index": 2,
|
||||
"uuid": "GPU-6f547b70-7a25-70cb-e134-888402be61e2",
|
||||
"sample_count": 707,
|
||||
"sample_interval_seconds": 1,
|
||||
"observed_peak_used_gib": 18.1650390625,
|
||||
"minimum_observed_free_gib": 61.0146484375
|
||||
},
|
||||
"request": {
|
||||
"task_type": "video.generate",
|
||||
"input": {
|
||||
"prompt": "A single continuous cinematic shot of one small white sailboat with a single red triangular sail gliding slowly from left to right across a calm blue sea at sunrise. Wide side view, fixed camera, stable distant coastline, gentle natural waves, consistent boat identity and lighting throughout, no cuts, no transitions, no time-lapse, no text.",
|
||||
"negative_prompt": "scene cut, transition, multiple boats, extra sails, flicker, distortion, blurry, text, watermark"
|
||||
},
|
||||
"parameters": {
|
||||
"width": 1280,
|
||||
"height": 704,
|
||||
"num_frames": 241,
|
||||
"fps": 24,
|
||||
"num_inference_steps": 50,
|
||||
"guidance_scale": 5,
|
||||
"seed": 42,
|
||||
"upscale": true,
|
||||
"upscale_width": 1920,
|
||||
"upscale_height": 1056,
|
||||
"tile_size": 128
|
||||
},
|
||||
"timeout_seconds": 3600,
|
||||
"scheduling": {
|
||||
"execution_mode": "batch",
|
||||
"principal_id": "longshot-validation",
|
||||
"batch_id": "longshot-20261111",
|
||||
"policy_version": "night-v1"
|
||||
}
|
||||
},
|
||||
"attempt_count": 1,
|
||||
"preemptions": 0,
|
||||
"started_at": 1794359110.0833101,
|
||||
"finished_at": 1794359858.4033303,
|
||||
"phase_walltime_estimate_seconds": {
|
||||
"model_including_load_cleanup": 458.8462164402008,
|
||||
"upscale_including_transition": 288.787309885025
|
||||
}
|
||||
}
|
||||
],
|
||||
"isolation": {
|
||||
"cmvr-visual-api": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"cmvr-visual-frontend": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"cmvr-visual-tts": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"cmvr-qwen38-fast": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"cmvr-qwen38-accurate": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"llmuser-workspace": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
},
|
||||
"llmuser-gpu-guard": {
|
||||
"same_id": true,
|
||||
"same_start": true
|
||||
}
|
||||
},
|
||||
"environment": {
|
||||
"memory_limit_gib": 128,
|
||||
"shm_gib": 8,
|
||||
"offload": "module(default)",
|
||||
"budget_gib": "68",
|
||||
"reserve_gib": "8",
|
||||
"versions": {
|
||||
"vllm": "0.32.0",
|
||||
"vllm_omni": "0.32.0",
|
||||
"torch": "2.13.0+cu130",
|
||||
"diffusers": "0.40.0",
|
||||
"transformers": "5.19.0"
|
||||
},
|
||||
"gpu": "NVIDIA H10080GB"
|
||||
},
|
||||
"runner_original_sha256": "0e3054b0385c8308e87626c5c1138b6714aa694ad500eaa0ecd903047176fd4a",
|
||||
"public_web_max_frames": 121,
|
||||
"visual_review": {
|
||||
"method": "one-frame-per-second contact sheet,11 samples;lastgridcellblank",
|
||||
"native": "same sailboat/coastline broadlystable;motionweak;slight colorchangefirstsecond;not a guarantee forcomplexmorph"
|
||||
},
|
||||
"website_assets": [
|
||||
{
|
||||
"id": "c1deafe1baa04c2db785f1d864578272",
|
||||
"name": "单镜头10秒实测-720P原片.mp4",
|
||||
"duration_seconds": 10.041667,
|
||||
"width": 1280,
|
||||
"height": 704,
|
||||
"bytes": 2326535
|
||||
},
|
||||
{
|
||||
"id": "344bfbfcdba04479814e2641488899de",
|
||||
"name": "单镜头10秒实测-1080P增强.mp4",
|
||||
"duration_seconds": 10.041667,
|
||||
"width": 1920,
|
||||
"height": 1056,
|
||||
"bytes": 57122544
|
||||
}
|
||||
],
|
||||
"browser": {
|
||||
"checks": [
|
||||
{
|
||||
"asset_id": "c1deafe1baa04c2db785f1d864578272",
|
||||
"duration": 10.041667,
|
||||
"width": 1280,
|
||||
"height": 704,
|
||||
"seeks": [
|
||||
1.0002,
|
||||
5.0001,
|
||||
9.5001
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"asset_id": "344bfbfcdba04479814e2641488899de",
|
||||
"duration": 10.041667,
|
||||
"width": 1920,
|
||||
"height": 1056,
|
||||
"seeks": [
|
||||
1.0005,
|
||||
5.0002,
|
||||
9.5001
|
||||
],
|
||||
"error": null
|
||||
}
|
||||
],
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user