Spaces:
Sleeping
Sleeping
Commit History
-
Add Wav2Vec2 model conversion and inference to ONNX format
- Implemented Wav2Vec2ONNXConverter class for converting Wav2Vec2 models to ONNX format, including model loading, conversion, and verification. - Added Wav2Vec2ONNXInference class for performing inference using the converted ONNX model. - Included methods for softmax calculation and transcription of audio files. - Added utility functions for creating compatible models and exporting with fallback options for different ONNX opset versions. - Introduced optimization function for ONNX models. - Created helper function to convert numpy types to native Python types for better compatibility.df380ff