Views
No views yet
npm i @huggingface/transformersonnx-community/rfdetr_medium-ONNX.1import { pipeline } from '@huggingface/transformers';
2
3const detector = await pipeline('object-detection', 'onnx-community/rfdetr_medium-ONNX');
4
5const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
6const output = await detector(img, { threshold: 0.75 });
7console.log(output);