Add/update the quantized ONNX model files and README.md for Transformers.js v3
#2
by
whitphx
HF Staff
- opened
- 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/4x_APISR_GRL_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/4x_APISR_GRL_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/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
|