From 76f8c33751a0f8d5dc05f7e4ae1ea1d1cbe611e1 Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Thu, 14 Nov 2024 20:26:25 +0000 Subject: [PATCH] Expose ImageFeatureExtractor as copy of ImageProcessor --- src/models/feature_extractors.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models/feature_extractors.js b/src/models/feature_extractors.js index 6364da7a8..869c8191b 100644 --- a/src/models/feature_extractors.js +++ b/src/models/feature_extractors.js @@ -7,3 +7,6 @@ export * from './speecht5/feature_extraction_speecht5.js'; export * from './wav2vec2/feature_extraction_wav2vec2.js'; export * from './wespeaker/feature_extraction_wespeaker.js'; export * from './whisper/feature_extraction_whisper.js'; + +// For legacy support, ImageFeatureExtractor is an alias for ImageProcessor +export { ImageProcessor as ImageFeatureExtractor } from "../base/image_processors_utils.js";