lucasjinreal/Kokoros

Support onnxruntime 1.20.0+

Open

#64 opened on Mar 7, 2025

View on GitHub
 (13 comments) (0 reactions) (0 assignees)Rust (105 forks)github user discovery
good first issue

Repository metrics

Stars
 (785 stars)
PR merge metrics
 (PR metrics pending)

Description

Libs: onnx: 1.17.0-1 onnxruntime: 1.20.2-2 ort: 2.0.0-rc.4

Error: 576 messages "Schema error: Trying to register schema with name"

......

Schema error: Trying to register schema with name TreeEnsembleClassifier (domain: ai.onnx.ml version: 3) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/old.cc line 175, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/old.cc line 175

Schema error: Trying to register schema with name TreeEnsembleRegressor (domain: ai.onnx.ml version: 3) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/old.cc line 422, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/old.cc line 422

Schema error: Trying to register schema with name LabelEncoder (domain: ai.onnx.ml version: 4) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 332, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 332

Schema error: Trying to register schema with name TreeEnsemble (domain: ai.onnx.ml version: 5) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 1017, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 1017

Schema error: Trying to register schema with name TreeEnsembleRegressor (domain: ai.onnx.ml version: 5) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 917, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 917

Schema error: Trying to register schema with name TreeEnsembleClassifier (domain: ai.onnx.ml version: 5) from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 800, but it is already registered from file /usr/src/debug/onnx/onnx/onnx/defs/traditionalml/defs.cc line 800

thread 'main' panicked at /Kokoros/kokoros/src/tts/koko.rs:68:18: Failed to create Kokoro TTS model: "Failed to commit from file: Load model from checkpoints/kokoro-v0_19.onnx failed:This is an invalid model. In Node, ("Identity_1316", Identity, "", -1) : ("onnx::MatMul_7102": tensor(float),) -> ("onnx::MatMul_7245",) , Error /usr/src/debug/onnx/onnx/onnx/defs/schema.cc:1116: SchemasRegisterer: Assertion dbg_registered_schema_count == DbgOperatorSetTracker::Instance().GetCount() failed: 4 schema were exposed from operator sets and automatically placed into the static registry. 696 were expected based on calls to registration macros. Operator set functions may need to be updated." stack backtrace: 0: rust_begin_unwind 1: core::panicking::panic_fmt 2: core::result::unwrap_failed 3: koko::main::{{closure}} 4: tokio::runtime::context::runtime::enter_runtime 5: koko::main

Solution: Downgrade onnxruntime to 1.19.2-4

yay downgrade
sudo downgrade onnxruntime

Contributor guide