Skip to content

Instantly share code, notes, and snippets.

View xaviliz's full-sized avatar
🏠
Working from home

Xavi Lizarraga xaviliz

🏠
Working from home
View GitHub Profile
@xaviliz
xaviliz / infer-arousal-valence-models-in-essentia.py
Last active March 30, 2025 19:00
Some examples of how to infer audio with the transfer learning-based arousal-valence models trained with DEAM dataset in Essentia.
# An example to infer arousal valence models with audio files in Essentia using the
# `deam-effnet-discogs-1.pb` model (DEAM dataset, Effnet-Discogs embeddings).
import json
from essentia import Pool
from essentia.standard import (
MonoLoader,
TensorflowPredict,
TensorflowPredictEffnetDiscogs,
TensorflowPredictMusiCNN,