为视频生成 VR 双眼字幕的单体实现:FastAPI 后端、调度器与全部节点 (提音/转写/翻译/ASS/抽帧/OCR/LLM 过滤)在单进程内运行。 - 节点协议(wov_sdk 数据模型)与分布式版保持一致,预留回退桥梁 - 工作流即数据:DAG 存于 workflows/*.json,模型/链路改动只改数据 - 调度器:拓扑顺序执行、断点续跑(产物重建)、任务暂停/继续 - 抽帧按帧间隔(select 按帧号精确取帧),VLM OCR 与 LLM 过滤使用 自适应线程池弹性并发,并打印数据处理速度进度日志 - 100% 行覆盖率(pytest --cov-fail-under=100)
42 lines
1.3 KiB
TOML
42 lines
1.3 KiB
TOML
[project]
|
||
name = "vrsub"
|
||
version = "0.1.0"
|
||
description = "VRSub:为视频生成 VR 双眼字幕的单体应用(API、调度器与全部节点在单进程内运行)"
|
||
requires-python = ">=3.11"
|
||
dependencies = [
|
||
# Web 框架:FastAPI 负责 API 与静态前端挂载。
|
||
"fastapi",
|
||
"uvicorn",
|
||
"python-multipart",
|
||
# 转写节点:faster-whisper 及其 CUDA 动态库(同进程直接加载,无需路径注入)。
|
||
"faster-whisper>=1.2.1",
|
||
"nvidia-cublas-cu12>=12.9.2.10",
|
||
"nvidia-cudnn-cu12>=9.24.0.43",
|
||
# 提音节点:imageio-ffmpeg 提供内置 ffmpeg 兜底。
|
||
"imageio-ffmpeg>=0.6",
|
||
"python-dotenv>=1.2.2",
|
||
]
|
||
|
||
[dependency-groups]
|
||
dev = [
|
||
"pytest",
|
||
"pytest-cov",
|
||
"httpx",
|
||
]
|
||
|
||
[build-system]
|
||
requires = ["setuptools>=68"]
|
||
build-backend = "setuptools.build_meta"
|
||
|
||
# wov_sdk / wov_app 位于 src/,nodes 位于仓库根,一并作为可安装包。
|
||
[tool.setuptools.packages.find]
|
||
where = ["src", "."]
|
||
include = ["wov_sdk*", "wov_app*", "nodes*"]
|
||
|
||
# pytest 配置:扫描 tests 目录并强制 100% 行覆盖率;同时把仓库根加入
|
||
# sys.path,保证 nodes 包在未重新安装时也能被导入。
|
||
[tool.pytest.ini_options]
|
||
testpaths = ["tests"]
|
||
pythonpath = ["."]
|
||
addopts = "--cov=src --cov=nodes --cov-fail-under=100 -p no:cacheprovider"
|