Update README.md
Browse files
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://
|
| 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.
|