Skip to content

v1.6.0

Latest

Choose a tag to compare

@Josef-Haupt Josef-Haupt released this 24 Nov 20:34
· 5 commits to main since this release
7bc206a

A performance release: the tf backend is up to three times as fast on a CPU, a batch_size above 1 no longer slows a CPU run down, and a GPU request that cannot be met raises an error instead of running on the CPU. onnxruntime 1.18.0 is now the minimum.

Changes

  • The tf backend is up to three times as fast on a CPU, at about 300 MiB more memory per worker for the 3.0 model and 60 MiB for 2.4. On Linux and Windows the 3.0 model analyses 2 to 3 times as much audio per second with a worker per core; the gain is smaller on Apple silicon. by @Josef-Haupt in #181
  • On a CPU a batch_size above 1 no longer slows a run down, for the tf backends and for onnx with one thread per worker. by @Josef-Haupt in #181
  • onnxruntime 1.18.0 is the minimum, up from 1.16.0: older releases cannot load the 3.0 models. by @Josef-Haupt in #176
  • An invalid device is rejected when the session is created: an unknown name such as "cuda", a GPU for the tf backend, or a device list that does not match n_workers. With n_workers=None a device list starts one worker per entry. by @Josef-Haupt in #180

Bugfixes

  • The onnx backend no longer runs device="GPU" on the CPU without an error; when ONNX Runtime cannot create its GPU provider, the session raises and names what to check. by @Josef-Haupt in #175
  • The onnx backend on a GPU no longer loses 2 to 2.5 s per run to the short batches at the end of the input. by @Josef-Haupt in #180
  • The pb backend on device="GPU" names the missing GPU install when TensorFlow finds no GPU, instead of failing with an empty AssertionError. by @Josef-Haupt in #180
  • The geo 3.0 pb model on a GPU fails with an error that names the two ways out, device="CPU" or TF_ENABLE_ONEDNN_OPTS=0, instead of TensorFlow's _MklLayerNorm error. by @Josef-Haupt in #174
  • On Windows, a TFLite model below a folder with a non-ASCII name loads, such as a user profile with an umlaut or an accent. by @Josef-Haupt in #178
  • A pipeline process killed at the wrong moment can no longer hang the session for good; the session reports the dead process instead. by @Josef-Haupt in #179
  • birdnet-benchmark --use-perch runs the Perch model, and the command takes --model-version 3.0 with the onnx and pt backends. by @Josef-Haupt in #180
  • ai-edge-litert no longer writes two lines of start-up output to stderr in every pipeline process; BIRDNET_TF_VERBOSE=1 shows them. by @Josef-Haupt in #181

Full Changelog: v1.5.1...v1.6.0