onnx-community
/

Xenova HF Staff commited on
Commit
6af5207
·
verified ·
1 Parent(s): 87fad30

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -28,7 +28,7 @@ import { pipeline } from '@huggingface/transformers';
28
 
29
  const segmenter = await pipeline('background-removal', 'onnx-community/modnet-webnn', { dtype: 'fp32' });
30
  const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
31
- const output = await segmenter(url);
32
  output[0].save('mask.png');
33
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
34
  ```
 
28
 
29
  const segmenter = await pipeline('background-removal', 'onnx-community/modnet-webnn', { dtype: 'fp32' });
30
  const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
31
+ const output = await segmenter([url]);
32
  output[0].save('mask.png');
33
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
34
  ```