diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index d50cbe8..3fa9ddd 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -47,7 +47,7 @@ jobs: - name: Check fmt run: cargo fmt --all -- --check - name: Run clippy - run: cargo clippy -p voicevox-ort --all-targets --workspace --features fetch-models + run: cargo clippy -p voicevox-ort --all-targets --features fetch-models coverage: name: Code coverage runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad0a1f6..5dd8661 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,9 @@ on: paths: - '.github/workflows/test.yml' - 'src/**/*.rs' + - 'examples/**/*' - 'ort-sys/**/*.rs' + - 'ort-sys/**/dist.txt' - 'build.rs' - 'Cargo.toml' - '.cargo/**/*' @@ -16,7 +18,9 @@ on: paths: - '.github/workflows/test.yml' - 'src/**/*.rs' + - 'examples/**/*' - 'ort-sys/**/*.rs' + - 'ort-sys/**/dist.txt' - 'build.rs' - 'Cargo.toml' - '.cargo/**/*' diff --git a/.gitignore b/.gitignore index bf1af90..6ab7181 100644 --- a/.gitignore +++ b/.gitignore @@ -186,6 +186,7 @@ WixTools/ # ONNX Runtime downloaded models **/*.onnx **/*.ort +**/*.pbseq !examples/webassembly/**/*.ort !tests/data/*.onnx !tests/data/*.ort @@ -195,3 +196,9 @@ WixTools/ # Glassbench results /glassbench*.db + +# Python virtual environment +.venv* + +# Training checkpoints +tools/train-data/**/checkpoint diff --git a/Cargo.toml b/Cargo.toml index e7b3785..a3b3efc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ members = [ 'examples/model-info', 'examples/yolov8', 'examples/modnet', + 'examples/training', 'examples/webassembly' ] default-members = [ @@ -22,8 +23,8 @@ exclude = [ 'examples/cudarc' ] [package] name = "voicevox-ort" -description = "A safe Rust wrapper for ONNX Runtime 1.17 - Optimize and Accelerate Machine Learning Inferencing" -version = "2.0.0-rc.2" +description = "A safe Rust wrapper for ONNX Runtime 1.18 - Optimize and accelerate machine learning inference & training" +version = "2.0.0-rc.4" edition = "2021" rust-version = "1.70" license = "MIT OR Apache-2.0" @@ -45,7 +46,7 @@ strip = true codegen-units = 1 [package.metadata.docs.rs] -features = [ "ndarray", "half", "operator-libraries", "fetch-models", "load-dynamic", "copy-dylibs", "__init-for-voicevox" ] +features = [ "ndarray", "half", "training", "operator-libraries", "fetch-models", "load-dynamic", "copy-dylibs", "__init-for-voicevox" ] targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"] rustdoc-args = [ "--cfg", "docsrs" ] @@ -55,6 +56,8 @@ name = "ort" [features] default = [ "ndarray", "half", "download-binaries", "copy-dylibs" ] +training = [ "voicevox-ort-sys/training" ] + operator-libraries = [ "libc", "winapi" ] fetch-models = [ "ureq" ] @@ -90,7 +93,7 @@ anyhow = "1.0" ndarray = { version = "0.15", optional = true } thiserror = "1.0" once_cell = "1.19.0" -voicevox-ort-sys = { version = "2.0.0-rc.2", path = "ort-sys" } +voicevox-ort-sys = { version = "2.0.0-rc.4", path = "ort-sys" } libloading = { version = "0.8", optional = true } ureq = { version = "2.1", optional = true, default-features = false, features = [ "tls" ] } diff --git a/README.md b/README.md index 262f3db..e3bdcc7 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@
ort
is an open-source Rust binding for ONNX Runtime.
\* Recent version of Windows 10/11 required for pyke binaries.
+† glibc ≥ 2.31 (Ubuntu ≥ 20.04) required for pyke binaries.
+‡ glibc ≥ 2.35 (Ubuntu ≥ 22.04) required for pyke binaries.
+§ macOS ≥ 10.15 required.
+¶ WASM supports a limited subset of ONNX Runtime features. For more info, see [the docs on WebAssembly support](/setup/webassembly).
+