Commit Graph

108 Commits

Author SHA1 Message Date
Joshua Lochner d0915294ae [version] Update to 2.7.0 2023-10-23 16:39:27 +02:00
Joshua Lochner 5b31129218 [version] Update to 2.6.2 2023-09-27 15:15:09 +02:00
Joshua Lochner b3a2a5b00f [version] Update to 2.6.1 2023-09-18 14:56:06 +02:00
Joshua Lochner ad7e8758bc [version] Update to 2.6.0 2023-09-08 15:41:59 +02:00
Joshua Lochner 0c2dcc7498 [version] Update to 2.5.4 2023-08-28 20:07:06 +02:00
Joshua Lochner 7076c8e401 [version] Update to 2.5.3 2023-08-22 23:31:00 +02:00
Joshua Lochner 254e99ef9a [version] Update to 2.5.2 2023-08-14 22:55:54 +02:00
Joshua Lochner b420a8841e [version] Update to 2.5.1 2023-08-09 22:25:53 +02:00
Joshua Lochner 9aa1a29dac [version] Update to 2.5.0 2023-08-01 14:24:56 +02:00
Joshua Lochner 27920d8483 [version] Update to 2.4.4 2023-07-28 13:28:37 +02:00
Joshua Lochner da67f41434 [version] Update to 2.4.3 2023-07-27 06:06:42 +02:00
Joshua Lochner f181e135d4 [version] Update to 2.4.2 2023-07-22 05:08:12 +02:00
Joshua Lochner 4e947aa657 [version] Update to 2.4.1 2023-07-11 02:12:28 +02:00
Joshua Lochner 86de50d0f2
Whisper word-level timestamps (#184)
* Support outputting attentions in generate function

* Add unit tests for concatenating tensors

* Implement `cat` for `dim>0`

* Add `cat` unit tests for > 2 tensors

* Allow for negative indexing + bounds checking

* Add test case for `cat` with negative indexing

* Clean up `safeIndex` helper function

* Allow indexing error message to include dimension

* Reuse `safeIndex` helper function for `normalize_`

* Optimize `cat` indexing

* Implement `stack` tensor operation

+ add unit tests

* Add TODOs

* Implement `mean` tensor operation

* Implement `std_mean` tensor ops

* Fix order of `std_mean` returns

* Implement median filter

* Implement dynamic time warping

* Implement `neg` tensor op

* Throw error if audio sent to processor is not a `Float32Array`

* Add `round` helper function

* [WIP] Implement basic version of word-level-timestamps

Known issues:
- timestamps not correct for index > 0
- punctuation not same as python version

* Fix typo

* Fix timestamps

* Round to 2 decimals

* Fix punctuation

* Fix typing

* Remove debug statements

* Cleanup code

* Cleanup

* Remove debug statements

* Update JSDoc for extract token timestamps function

* Add return type for `std_mean` tensor function

* Improve typing of private whisper tokenizer functions

* Indicate method is private

* Allow whisper feature extractor to be called with Float64Array input

* Fix typo

* Throw error if `cross_attentions` are not present in model output when extracting token timestamps

* Throw error during generate function

* Allow whisper models to be exported with `output_attentions=True`

* Add alignment heads to generation config

* Remove print statement

* Update versions

* Override protobufjs version

* Update package-lock.json

* Require onnx==1.13.1 for conversion

Will update once onnxruntime-web supports onnx IR version 9

* Add unit test for word-level timestamps

* Extract add attentions function out of `generate`

* Fix `findLongestCommonSequence` return types

* Downgrade back to onnxruntime 1.14.0

1.15.1 is a little to unstable right now.

* Cleanup

- use `.map`
- rename variables

* Update comments

* Add examples for how to transcribe w/ word-level timestamps

* Add example for transcribing/translating audio longer than 30 seconds

* Make example more compact
2023-07-09 23:21:43 +02:00
Joshua Lochner 1563b434bc [version] Update to 2.3.1 2023-07-01 04:15:13 +02:00
Joshua Lochner 8d6622ef9b [version] Update to 2.3.0 2023-06-22 15:36:02 +02:00
Joshua Lochner d90f58110a
Add whisper unit tests (#155)
* Only run encoder with required inputs

* Add basic whisper unit tests

* Add newline after heading for docs

* Add unit test for transcribing english with timestamps

* Add multilingual test case
2023-06-21 23:58:16 +02:00
Joshua Lochner 035f69f79a [version] Update to 2.2.0 2023-06-09 15:18:29 +02:00
Joshua Lochner e5e460bd3b [version] Update to 2.1.1 2023-06-02 02:11:24 +02:00
Joshua Lochner 34b0e8b88f [version] Update to v2.1.0 2023-06-01 14:42:27 +02:00
Joshua Lochner 99c771bf48 Run `generate_tests.py` as module 2023-05-31 02:21:15 +02:00
Joshua Lochner 9bc1c33b39 [version] Update to 2.0.2 2023-05-29 12:50:30 +02:00
Joshua Lochner ac23bc5e12 Freeze onnxruntime dependencies (#124)
Their latest version has a few issues, particularly with webgpu, and also uses .wasm files which are incompatible with their previous versions.

So, while those issues are sorted out, it's best to freeze their packages to the latest stable version.
2023-05-29 12:41:52 +02:00
Joshua Lochner d7c353d812 [version] Update to 2.0.1 2023-05-20 15:47:07 +02:00
Joshua Lochner 63240244fc [package.json] Update keywords 2023-05-20 15:46:44 +02:00
Joshua Lochner 112420174b Release version 2.0.0 2023-05-17 15:14:09 +02:00
Joshua Lochner 20b6e6d2e4 Update version to 2.0.0-alpha.4 2023-05-17 00:04:04 +02:00
Joshua Lochner 49a1bd79e2 Update license field in package.json 2023-05-16 08:36:48 +02:00
Joshua Lochner 507ec57b4d Bump version to 2.0.0-alpha.3 2023-05-16 08:14:43 +02:00
Joshua Lochner cc60ee5029 Fix jsdelivr entry point
For more information, see: https://www.jsdelivr.com/documentation#id-configuring-a-default-file-in-packagejson
2023-05-15 20:10:41 +02:00
Joshua Lochner 6686357b0a Add CDN keys to package.json 2023-05-15 18:44:08 +02:00
Joshua Lochner 6b16a552dc Update package.json 2023-05-15 13:37:37 +02:00
Joshua Lochner ad3676f62f Update package.json 2023-05-15 13:32:55 +02:00
Joshua Lochner 17aa58347b Add npm scripts for building documentation 2023-05-13 21:30:33 +02:00
Joshua Lochner b25f19350f Update package.json 2023-05-08 05:44:25 +02:00
Joshua Lochner 0cbfaa4bba Remove `node:` prefix for `stream/web` import 2023-05-04 00:41:14 +02:00
Joshua Lochner e37b9e5870 Move `generate-tests` to github workflow 2023-05-02 20:04:36 +02:00
Joshua Lochner ca96c7e6c8 Generate tests before running unit tests 2023-05-02 20:01:19 +02:00
Joshua Lochner 2e9c789023 Add `docs-preview` script to package.json 2023-05-02 05:12:46 +02:00
Joshua Lochner a861785a10 Use jest for unit testing 2023-05-02 05:12:21 +02:00
Joshua Lochner 34db6d694c Add `onnxruntime-node` to browser ignore list 2023-04-25 01:40:07 +02:00
Joshua Lochner 1206827a3b Update dev dependency versions 2023-04-25 01:39:28 +02:00
Joshua Lochner b5c9163533 Ignore url package from browser 2023-04-24 06:06:42 +02:00
Joshua Lochner f25b17c91a Merge branch 'es6-rewrite' into docs 2023-04-24 04:57:38 +02:00
Joshua Lochner ad69f0a9ea Update package.json 2023-04-22 22:03:31 +02:00
Joshua Lochner aba491e942 [version] Set version to 1.5.0.dev 2023-04-18 17:09:29 +02:00
Joshua Lochner d36ba315ec Merge branch 'main' into docs 2023-04-17 15:28:57 +02:00
Joshua Lochner 87e121c76e Use `sharp.js` instead of `node-canvas` for resizing images with node.js (Fixes #85)
node-canvas has problems with installation, and doesn't support bilinear/bicubic interpolation.

sharp.js is also much faster: https://github.com/ivanoff/images-manipulation-performance
2023-04-15 22:30:49 +02:00
Joshua Lochner 421aa331cd Replace CommonJS imports/exports with ES6 2023-04-13 21:01:44 +02:00
Joshua Lochner ee1056bb71 [version] Update to v1.4.2 2023-04-11 02:48:24 +02:00