Downloads · 30 days
6
3% of all-time downloads
kojima-lab/Cd_kahakuDB
Cd_kahakuDB is a machine learning model from kojima-lab. 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.
https://huggingface.co/kojima-r/wav2vec2-base-birddb-small
Downloads · 30 days
6
3% of all-time downloads
All-time downloads
199
Public
Repo size
380 MB
Likes
0
Public
Click a slice to open those files.
.bin380 MB · 100%
From the Hugging Face model README
https://huggingface.co/kojima-r/wav2vec2-base-birddb-small
import librosa
import torch
from transformers import Wav2Vec2ForPreTraining,Wav2Vec2Processor
sound_file = 'sample.wav'
sound_data,_ = librosa.load(sound_file, sr=16000)
model_id = "kojima-lab/Cd_kahakuDB"
model = Wav2Vec2ForPreTraining.from_pretrained(model_id)
result=model(torch.tensor([sound_data]))
hidden_vecs=result.projected_states

H: red, L: green