Xenova HF Staff whitphx HF Staff commited on
Commit
940fb30
·
verified ·
1 Parent(s): 60074c4

Add/update the quantized ONNX model files and README.md for Transformers.js v3 (#1)

Browse files

- Add/update the quantized ONNX model files and README.md for Transformers.js v3 (33f07415d5b8ea33efd8ccffbce18f57cf3bebf8)


Co-authored-by: Yuichiro Tachibana <[email protected]>

README.md CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/facebook/convnextv2-pico-1k-224 with ONNX weights to be c
7
 
8
  ## Usage (Transformers.js)
9
 
10
- If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@xenova/transformers) using:
11
  ```bash
12
- npm i @xenova/transformers
13
  ```
14
 
15
  **Example:** Perform image classification with `Xenova/convnextv2-pico-1k-224`.
16
 
17
  ```js
18
- import { pipeline } from '@xenova/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnextv2-pico-1k-224');
@@ -23,7 +23,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnextv2-pic
23
  // Classify an image
24
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
25
  const output = await classifier(url);
26
- console.log(output)
27
  ```
28
 
29
  ---
 
7
 
8
  ## Usage (Transformers.js)
9
 
10
+ If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
11
  ```bash
12
+ npm i @huggingface/transformers
13
  ```
14
 
15
  **Example:** Perform image classification with `Xenova/convnextv2-pico-1k-224`.
16
 
17
  ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnextv2-pico-1k-224');
 
23
  // Classify an image
24
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
25
  const output = await classifier(url);
26
+ console.log(output);
27
  ```
28
 
29
  ---
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d659952e8fb8d25bae0f1613f837add14eccc53c3a9693c30b87d1f725404645
3
+ size 10100116
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:658e89500189811c4c26b41f1673818ae5d7348afe00c5fa4410fc51273d908a
3
+ size 10579158
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:996a5d94c814150f7e250895659b68e9902cfa766d1a72db71ce6e51b1f423cd
3
+ size 7302957
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d98baa3da7a8efeaaa14464681624b8fb39bfa07c76f2c23d7d0d9b6f3a9df21
3
+ size 9483967