Xenova HF Staff whitphx HF Staff commited on
Commit
5e55535
·
verified ·
1 Parent(s): 70bfbf9

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

Browse files

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


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

Files changed (2) hide show
  1. README.md +4 -4
  2. onnx/model_q4f16.onnx +3 -0
README.md CHANGED
@@ -12,18 +12,18 @@ https://github.com/Kiteretsu77/APISR with ONNX weights to be compatible with Tra
12
 
13
  ## Usage (Transformers.js)
14
 
15
- 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:
16
  ```bash
17
- npm i @xenova/transformers
18
  ```
19
 
20
  **Example:** Upscale an image with `Xenova/4x_APISR_GRL_GAN_generator-onnx`.
21
  ```js
22
- import { pipeline } from '@xenova/transformers';
23
 
24
  // Create image-to-image pipeline
25
  const upscaler = await pipeline('image-to-image', 'Xenova/4x_APISR_GRL_GAN_generator-onnx', {
26
- quantized: false,
27
  });
28
 
29
  // Upscale an image
 
12
 
13
  ## Usage (Transformers.js)
14
 
15
+ 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:
16
  ```bash
17
+ npm i @huggingface/transformers
18
  ```
19
 
20
  **Example:** Upscale an image with `Xenova/4x_APISR_GRL_GAN_generator-onnx`.
21
  ```js
22
+ import { pipeline } from '@huggingface/transformers';
23
 
24
  // Create image-to-image pipeline
25
  const upscaler = await pipeline('image-to-image', 'Xenova/4x_APISR_GRL_GAN_generator-onnx', {
26
+ dtype: "fp32",
27
  });
28
 
29
  // Upscale an image
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a04f6ed3184a57769c41d186f17bb1e311445ddf12f85af3e2c89089e88ee7f
3
+ size 4689466