Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

已關閉 適合新手
#63 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 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
平均合併
17 小時 5 分鐘
30 天內合併 PR
34

環境準備

  • 沒有 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 摘要。