Downloads · 30 days
6
13% of all-time downloads
kojima-r/wav2vec2-base-birddb-small
wav2vec2-base-birddb-small is a machine learning model from kojima-r. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This is a wav2vec2-base model trained from selected bird songs in a birddb dataset.
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
48
Public
Repo size
761 MB
Likes
1
Public
Click a slice to open those files.
.bin380 MB · 100%
From the Hugging Face model README
This is a wav2vec2-base model trained from selected bird songs in a birddb dataset.
import librosa
import torch
from transformers import Wav2Vec2ForPreTraining,Wav2Vec2Processor
sound_file = 'sample.wav'
sound_data,_ = librosa.load(sound_file, sr=16000)
model_id = "kojima-r/wav2vec2-base-birddb-small"
model = Wav2Vec2ForPreTraining.from_pretrained(model_id)
result=model(torch.tensor([sound_data]))
hidden_vecs=result.projected_states
