Xenova HF Staff commited on
Commit
c25db7d
·
verified ·
1 Parent(s): a643398

Update README.md

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