transformers.js/docs
Joshua Lochner cdcbfc125c
Add support for Segment Anything Model (#510)
* Update SamModel

* Make `AutoModel.from_pretrained` work with SamModel

* Add listed support for SAM (Segment Anything Model)

* Update types of `calculateDimensions`

* Throw error if reading image from tensor with dims.length != 3

* Make SamProcessor input points optional

* Fix type errors

* `let` -> `const`

* `cat` -> `stack`

* Expose `reshape_input_points` in `SamProcessor`

* Add `input_labels` input parameter for SAM

* Add `input_labels` to sam processor

* Update SAM unit tests

* Remove TODOs

* Update JSDoc
2024-01-10 17:47:21 +02:00
..
build Add docs folder 2023-05-13 19:59:18 +02:00
scripts Add jsDelivr stats to README (#395) 2023-11-18 12:59:15 +02:00
snippets Add support for Segment Anything Model (#510) 2024-01-10 17:47:21 +02:00
source Standardize `HF_ACCESS_TOKEN` -> `HF_TOKEN` (#431) 2023-12-06 18:33:50 +02:00
jsdoc-conf.json Update jsdoc-conf.json 2023-05-13 22:44:17 +02:00