UNPKG

transformers-fork

Version:

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

14 lines (12 loc) • 376 B
import { ImageProcessor, } from "../../base/image_processors_utils.js"; export class EfficientNetImageProcessor extends ImageProcessor { constructor(config) { super(config); this.include_top = this.config.include_top ?? true; if (this.include_top) { this.image_std = this.image_std.map(x => x * x); } } }