Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-funasr-onnx-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
import importlib.util
from importlib.metadata import requires, version

assert version("funasr-onnx") == "0.4.6"
assert version("funasr-onnx") == "0.4.7"
assert importlib.util.find_spec("torch") is None

requirements = requires("funasr-onnx") or []
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v7
with:
name: funasr-onnx-0.4.6
name: funasr-onnx-0.4.7
path: dist/funasr-onnx/*
if-no-files-found: error

8 changes: 6 additions & 2 deletions runtime/python/onnxruntime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ does not update the installed ONNX wrappers. Check their versions separately
with `python -m pip show funasr-onnx funasr`; use the source installation below
when a required wrapper fix is newer than the published PyPI package.

Version 0.4.7 includes the Contextual/Seaco Paraformer hotword batching fix
(#3838), including empty hotword-file handling. This is a runtime wrapper
fix, not a model-weight update or an ASR accuracy claim.

Version 0.4.6 fixes offline FSMN-VAD calls with multiple inputs so each
waveform is scored independently and returns one independent result per input.
Requested batch sizes remain accepted, while the effective model batch remains 1
Expand All @@ -24,9 +28,9 @@ and postprocessing fixes, not a model-weight update or an ASR accuracy claim.
install from pip

```shell
pip install -U "funasr-onnx>=0.4.6"
pip install -U "funasr-onnx>=0.4.7"
# For the users in China, you could install with the command:
# pip install -U "funasr-onnx>=0.4.6" -i https://mirror.sjtu.edu.cn/pypi/web/simple
# pip install -U "funasr-onnx>=0.4.7" -i https://mirror.sjtu.edu.cn/pypi/web/simple
# If you want to export .onnx file, you should install modelscope and funasr
pip install -U modelscope funasr
# For the users in China, you could install with the command:
Expand Down
2 changes: 1 addition & 1 deletion runtime/python/onnxruntime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_readme():


MODULE_NAME = "funasr_onnx"
VERSION_NUM = "0.4.6"
VERSION_NUM = "0.4.7"

setuptools.setup(
name=MODULE_NAME,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_funasr_onnx_installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class InstalledOnnxPackageTest(unittest.TestCase):
def test_installed_distribution_version_and_origin(self):
distribution = importlib.metadata.distribution('funasr-onnx')
self.assertEqual(distribution.version, '0.4.6')
self.assertEqual(distribution.version, '0.4.7')
self.assertEqual(
Path(funasr_onnx.__file__).resolve().parent,
Path(distribution.locate_file('funasr_onnx')).resolve(),
Expand Down
6 changes: 4 additions & 2 deletions tests/test_funasr_onnx_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ROOT = Path(__file__).resolve().parents[1]
PACKAGE_ROOT = ROOT / "runtime" / "python" / "onnxruntime"
SETUP_PATH = PACKAGE_ROOT / "setup.py"
EXPECTED_VERSION = "0.4.6"
EXPECTED_VERSION = "0.4.7"
REQUIREMENT_NAME_PATTERN = re.compile(r"^\s*([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?)")


Expand Down Expand Up @@ -44,7 +44,7 @@ def normalized_requirement_name(requirement):


class FunASROnnxReleaseContractTest(unittest.TestCase):
def test_release_version_is_0_4_6(self):
def test_release_version_is_0_4_7(self):
self.assertEqual(assigned_literal(read_setup_tree(), "VERSION_NUM"), EXPECTED_VERSION)

def test_standalone_license_preserves_repository_notice(self):
Expand All @@ -67,6 +67,8 @@ def test_readme_names_the_standalone_fix_release(self):
self.assertIn("one independent result per input", readme)
self.assertIn("effective model batch remains 1", readme)
self.assertIn("#3831", readme)
self.assertIn("#3838", readme)
self.assertIn("hotword", readme)

def test_runtime_dependencies_keep_onnx_install_torch_free(self):
requirements = setup_keyword_literal(read_setup_tree(), "install_requires")
Expand Down
Loading