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 (0e9418ad74ae08c2b752ab246763dd1c00f42e49)
Co-authored-by: Yuichiro Tachibana <whitphx@users.noreply.huggingface.co>
- README.md +4 -4
- 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/@
|
16 |
```bash
|
17 |
-
npm i @
|
18 |
```
|
19 |
|
20 |
**Example:** Upscale an image with `Xenova/2x_APISR_RRDB_GAN_generator-onnx`.
|
21 |
```js
|
22 |
-
import { pipeline } from '@
|
23 |
|
24 |
// Create image-to-image pipeline
|
25 |
const upscaler = await pipeline('image-to-image', 'Xenova/2x_APISR_RRDB_GAN_generator-onnx', {
|
26 |
-
|
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/2x_APISR_RRDB_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/2x_APISR_RRDB_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:baccc331b9bc797dd3b31247e9cf921eba973ee297205bc71a412baed16c9452
|
3 |
+
size 9046436
|