Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ONNX extractor: Piper TTS models report name "main_graph" and version 9223372036854775807

未关闭 适合新手
#63 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
machine-learning, python, pytorch

调研方向

阅读 wildedge/integrations/onnx.py,尤其是 OnnxExtractor.extract_info,并检查它如何从 ONNX InferenceSession 派生图名称、版本和模型路径。复现 Piper 语音生成的元数据,然后添加或更新有针对性的测试,以覆盖 main_graph、INT64_MAX 或其他负版本,以及模型文件回退逻辑。当 Piper 语音能够生成不同的名称、未设置的版本会被省略,并且通用图名称会使用回退路径时,即完成此项工作。

由索引模型根据 Issue 内容生成。

描述

What happens

Loading a Piper TTS voice (onnxruntime.InferenceSession on e.g. pl_PL-*.onnx) with the onnx integration registers:

  • model_name = "main_graph"
  • model_version = "9223372036854775807"

In OnnxExtractor.extract_info (wildedge/integrations/onnx.py:144):

  • main_graph (the default name from torch.onnx.export in newer PyTorch) isn't in _GENERIC_GRAPH_NAMES, so it's used as the model name.
  • meta.version is INT64_MAX, an "unset" sentinel, and only "0" is treated as missing.

Every Piper voice therefore shows up as the same model, with a nonsense version.

Expected

  • Add main_graph to _GENERIC_GRAPH_NAMES.
  • Treat INT64_MAX (and probably any negative value) as no version.
  • When the graph name is generic, fall back to the model file name stem (session._model_path when available, or the path passed to InferenceSession) before "onnx-model".

SDK 0.2.2, onnxruntime on macOS.

🤖 Generated with Claude Code

主要语言
Python
星标
17
派生
1
平均合并
23 分钟
30 天内合并 PR
7

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wild-edge/wildedge-python 的其他 Issue

查看 wild-edge/wildedge-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。