requirements.txt 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # 拾音器异响检测系统 - 依赖清单
  2. #
  3. # 安装: pip install -r requirements.txt
  4. # 国内镜像: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  5. #
  6. # 注意: PyTorch 需根据 CUDA 版本安装,详见 https://pytorch.org
  7. # FFmpeg 需单独安装(系统包管理器)
  8. # 深度学习
  9. torch>=2.0.0 # 模型推理
  10. onnxruntime>=1.14.0 # ONNX 模型验证 / BModel 转换前精度检查
  11. # 数值计算
  12. numpy>=1.23.0,<2.0 # PyTorch 2.x 不兼容 NumPy 2.x
  13. # 音频处理
  14. librosa>=0.10.0 # Mel 频谱提取
  15. soundfile>=0.12.0 # 音频文件 I/O
  16. # 网络请求
  17. requests>=2.28.0 # SCADA API / 推送接口调用
  18. # 配置管理 API
  19. fastapi>=0.100.0 # 配置管理 RESTful 接口
  20. uvicorn>=0.22.0 # ASGI 服务器
  21. pydantic>=2.0 # 数据验证
  22. # 训练 / 迁移工具依赖
  23. pyyaml>=6.0 # YAML 解析(迁移脚本 + auto_training)
  24. apscheduler>=3.10.0 # 定时任务调度(auto_training)