cpuai's picture
Install complete Linux VS Code + AHP MCP development workstation 2026-10-12
c12eb19 verified
|
Raw History Blame Contribute Delete
2.93 kB

完整流水线(项目根 = E:\gpt6kaifa\Hyperframes_Science_\)

A. 环境准备(一次)

  1. 把用户上传的 skill zip 放到开发机,解压到项目 _skill_unpacked\,对比 zip 的 sha256 与上传件一致(日志里应出现 zip sha256:)。
  2. 项目目录:assets/ scripts/ output/ tests/;把 skill 的 scripts/*.py(narrate / mix_audio / repair_subtitles / verify_subtitles / validate_release / audit_science / audit_domain / domain_router / safezone_audit / video_decode_check / preview_voices)复制到项目 scripts/;requirements.txt 同理。
  3. pip install -r requirements.txt(含 edge-tts);node_modules 可从旧项目 robocopy(含 gsap、hyperframes 0.8.115);否则 npm install。
  4. 字体 assets/fonts/sans-sc.woff2。
  5. package.json:
    • check: hyperframes check --json
    • snapshots: hyperframes snapshot --at 4,12,20,...,92 --output output/snapshots --no-browser-gpu --describe false(按实际时长调整采样点)
    • render: hyperframes render --fps 30 --workers 2 --no-browser-gpu --output output/<slug>.mp4

B. 内容与素材

python scripts\make_diagrams.py                       # 生成 assets/diagrams/*.svg(audit_science 需要)
python scripts\audit_science.py --allow-unreviewed    # science_gate_pass:true;scientific_truth_manually_verified:false 属正常
python scripts\narrate.py                             # 真 TTS!产出 timing.json captions.json assets/voice/* output/<slug>.srt
python scripts\repair_subtitles.py                    # 期望"纠正 0 处"
python scripts\verify_subtitles.py captions.json      # qa_pass:true
python scripts\mix_audio.py                           # assets/film-mix.wav,mock_voice:false
python scripts\build_seasons.py                       # 生成 index.html / meta.json

narrate.py 输出里必须 "mock": false、warnings: []。

C. 检查与渲染

npm run check        # 期望 ok:true,lint errorCount 0(nested_structure 的 8 条 warning 可忽略)
npm run snapshots    # 13 张帧 + contact-sheet-*.jpg
npm run render       # ~16 min / 138 s 片
python scripts\video_decode_check.py output\<slug>.mp4      # whole_movie_decode_ok:true
python scripts\validate_release.py                          # qa_pass:true;会生成 -source.zip 与 -complete.zip
python scripts\safezone_audit.py index.html                 # 注意:必须传 html 参数;warnings 为空
python -m unittest discover -s tests -v                     # 17 tests OK

D. 帧统计粗检(没法看图时)

用 PIL 对 snapshots 逐帧算均值/标准差:不应有全黑/全同帧,场景之间应有明显差异。这只是兜底,不能替代人眼。

E. 交付清单

成片路径、时长、分辨率、检查结果;SRT;来源 URL;科学审核待完成;示意图声明;已知问题(时长超标、地图简化等)。