@huggingface/transformers
Version:
State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
10 lines (8 loc) • 386 B
JavaScript
import { ImageProcessor, post_process_object_detection } from '../../image_processors_utils.js';
export class YolosImageProcessor extends ImageProcessor {
/** @type {typeof post_process_object_detection} */
post_process_object_detection(...args) {
return post_process_object_detection(...args);
}
}
export class YolosFeatureExtractor extends YolosImageProcessor {}