File size: 871 Bytes
6b26b3a 54d1502 6b26b3a 54d1502 6b26b3a 54d1502 6b26b3a 54d1502 6b26b3a 54d1502 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
---
language:
- en
tags:
- openvino
---
# anton-l/wav2vec2-base-superb-sd
This is the [anton-l/wav2vec2-base-superb-sd](https://huggingface.co/anton-l/wav2vec2-base-superb-sd) model converted to [OpenVINO](https://openvino.ai), for accelerated inference.
An example of how to do inference on this model:
```python
from optimum.intel import OVModelForAudioFrameClassification
from transformers import AutoFeatureExtractor, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/anton-l-wav2vec2-base-superb-sd-ov"
feature_extractor = AutoFeatureExtractor.from_pretrained(model_id, trust_remote_code=True)
model = OVModelForAudioFrameClassification.from_pretrained(model_id)
pipe = pipeline("None", model=model, feature_extractor=feature_extractor)
result = pipe("hello world")
print(result)
```
|