Onnx feature extractors
Collection
Various models in onnx format meant for feature extraction • 8 items • Updated
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
MFCC feature extractor exported to onnx
sess = ort.InferenceSession(model_path)
input_name = sess.get_inputs()[0].name
output_name = sess.get_outputs()[0].name
mfcc_np = sess.run([output_name], {input_name: wav_np})[0]
mfcc_tensor = torch.from_numpy(feats_np).to(torch.float32).squeeze(0)