Audio Classification
Transformers
Safetensors
Slovenian
Croatian
Serbian
wav2vec2-bert
audio-frame-classification
Instructions to use classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForAudioFrameClassification processor = AutoProcessor.from_pretrained("classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier") model = AutoModelForAudioFrameClassification.from_pretrained("classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,7 +66,7 @@ if torch.cuda.is_available():
|
|
| 66 |
else:
|
| 67 |
device = torch.device("cpu")
|
| 68 |
|
| 69 |
-
model_name = "
|
| 70 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
| 71 |
model = Wav2Vec2BertForAudioFrameClassification.from_pretrained(model_name).to(device)
|
| 72 |
# Path to the file, containing the word to be annotated:
|
|
|
|
| 66 |
else:
|
| 67 |
device = torch.device("cpu")
|
| 68 |
|
| 69 |
+
model_name = "classla/Wav2Vec2BertPrimaryStressAudioFrameClassifier"
|
| 70 |
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
| 71 |
model = Wav2Vec2BertForAudioFrameClassification.from_pretrained(model_name).to(device)
|
| 72 |
# Path to the file, containing the word to be annotated:
|