ONNX extractor: Piper TTS models report name "main_graph" and version 9223372036854775807
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
调研方向
阅读 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 fromtorch.onnx.exportin newer PyTorch) isn't in_GENERIC_GRAPH_NAMES, so it's used as the model name.meta.versionisINT64_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_graphto_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_pathwhen available, or the path passed toInferenceSession) 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wild-edge/wildedge-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
wild-edge/wildedge-python#62 ·
-
难度 3/5 1-2 天 新手友好度 72/100
wild-edge/wildedge-python#65 ·
-
难度 3/5 1-2 天 新手友好度 72/100
wild-edge/wildedge-python#64 ·
-
难度 3/5 1-2 天 新手友好度 68/100
wild-edge/wildedge-python#61 ·
-
vLLM integration可能重新可做 @piotrekno1 于 119 天前认领,目前没有进行中的 PR。 未关闭
wild-edge/wildedge-python#38 · 已指派 1 人 ·
查看 wild-edge/wildedge-python 的全部 Issue
相似的 Issue
-
`image_generation`: `max_retries` is ignored for OpenAI-compatible providers (always 2 retries)可能已有人在做 @ericz7900 今天认领。 未关闭llm translation
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
rheeloaded/paperpull#117 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
agenda-tech-brasil/agenda-tech-brasil#1619 · 1 条评论 ·
-
process
难度 1/5 1-3 小时 新手友好度 76/100
pyrite-wiki/pyrite#1036 ·
维护者通常 1 天内回复