Xenova HF Staff commited on
Commit
edc2179
·
verified ·
1 Parent(s): ca84396

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -19,7 +19,7 @@ npm i @huggingface/transformers
19
  import { pipeline } from '@huggingface/transformers';
20
 
21
  const segmenter = await pipeline('background-removal', 'onnx-community/MVANet-ONNX');
22
- const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/woman-with-afro_medium.jpg';
23
  const output = await segmenter(url);
24
  output[0].save('mask.png');
25
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
 
19
  import { pipeline } from '@huggingface/transformers';
20
 
21
  const segmenter = await pipeline('background-removal', 'onnx-community/MVANet-ONNX');
22
+ const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
23
  const output = await segmenter(url);
24
  output[0].save('mask.png');
25
  // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.