UNPKG

@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) • 418 B
import { ImageProcessor, post_process_semantic_segmentation } from '../../image_processors_utils.js'; export class SegformerImageProcessor extends ImageProcessor { /** @type {typeof post_process_semantic_segmentation} */ post_process_semantic_segmentation(...args) { return post_process_semantic_segmentation(...args); } } export class SegformerFeatureExtractor extends SegformerImageProcessor {}