Downloads · 30 days
0
EarthSpeciesProject/esp-aves2-effnetb0-audioset
esp-aves2-effnetb0-audioset is a machine learning model from EarthSpeciesProject. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-sa-4.0.
esp-aves2-effnetb0-audioset is a supervised audio encoder based on the EfficientNet-B0 CNN architecture, trained on AudioSet to produce transferable embeddings for downstream audio and bioacoustic tasks, as part of th…
Downloads · 30 days
0
Access
Public
Updated Feb 2, 2026
Repo size
94.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors18.9 MB · 100%
From the Hugging Face model README
esp-aves2-effnetb0-audioset is a supervised audio encoder based on the EfficientNet-B0 CNN architecture, trained on AudioSet to produce transferable embeddings for downstream audio and bioacoustic tasks, as part of the experiments in What Matters for Bioacoustic Encoding.
https://www.earthspecies.org/about-us#supporthttps://github.com/earthspecies/avexhttps://docs.pytorch.org/vision/main/models/generated/torchvision.models.efficientnet_b0.htmlesp-aves2-effnetb0-audioset can be used directly as an embedding model for audio and bioacoustic tasks such as species classification/detection, retrieval, clustering, individual ID, and repertoire analysis, especially when AudioSet-style general audio coverage is desirable.
Use frozen embeddings with linear probes, or fine-tune on your target dataset. This model is also suitable as a general-purpose audio encoder within acoustic monitoring or audio understanding pipelines.
Validate on in-domain data before deployment. For long-term or conservation-sensitive monitoring, track performance over time and apply data governance and access control where appropriate.
Loading this model requires the AVEX (Animal Vocalization Encoder) library avex to be installed.
pip install avex
Or with uv:
uv add avex
For more details, see https://github.com/earthspecies/avex.
from avex import load_model
model = load_model("esp_aves2_effnetb0_audioset", device="cuda")
# Case 1: embedding extraction (features only)
backbone = load_model("esp_aves2_effnetb0_audioset", device="cuda", return_features_only=True)
with torch.no_grad():
embeddings = backbone(audio_tensor)
# Shape: (batch, channels, height, width) for EfficientNet
# Pool to get fixed-size embedding
embedding = embeddings.mean(dim=(2, 3)) # Shape: (batch, channels)
# Case 2: supervised predictions (logits over label IDs; see label_map.json)
model = load_model("esp_aves2_effnetb0_audioset", device="cuda")
with torch.no_grad():
logits = model(audio_tensor)
predicted_class = logits.argmax(dim=-1).item()
from avex.models.probes import build_probe_from_config
from avex.configs import ProbeConfig
# Load backbone for feature extraction
base = load_model("esp_aves2_effnetb0_audioset", return_features_only=True, device="cuda")
# Define a probe head for your task
probe_config = ProbeConfig(
probe_type="linear",
target_layers=["last_layer"],
aggregation="mean",
freeze_backbone=True,
online_training=True,
)
probe = build_probe_from_config(
probe_config=probe_config,
base_model=base,
num_classes=10, # Your number of classes
device="cuda",
)
The class label mapping for this supervised learning model can be found at label_map.json in the Hugging Face repository.
esp-aves2-effnetb0-audioset follows the paper’s supervised recipe using AudioSet only, starting from an ImageNet-pretrained EfficientNet-B0 backbone.
| Dataset | Description | Source | License | Size |
|---|---|---|---|---|
| AudioSet | general audio | Link | See dataset terms | 5700 hours |
As described in the paper (for the AudioSet-only EfficientNet-B0 baseline):
Training hyperparameters are specified in train_config.yaml.
When used as a backbone in the What Matters for Bioacoustic Encoding experiments, this model is evaluated on:
https://github.com/earthspecies/beanshttps://huggingface.co/datasets/DBD-research-group/BirdSetAggregate results for linear probing (frozen base model) with esp-aves2-effnetb0-audioset are not yet finalized for this model card. Please refer to the latest version of the paper or future updates of this repository for a consolidated results table.
Not specified in the provided excerpt.
esp-aves2-effnetb0-audioset uses an EfficientNet-B0 CNN operating on time-frequency representations (spectrograms), trained with supervised learning on AudioSet to learn general-purpose audio representations.
Key components:
Not specified in the provided excerpt.
Model configuration is available in train_config.yaml.
BibTeX:
@inproceedings{miron2025matters,
title={What Matters for Bioacoustic Encoding},
author={Miron, Marius and Robinson, David and Alizadeh, Milad and Gilsenan-McMahon, Ellen and Narula, Gagan and Chemla, Emmanuel and Cusimano, Maddie and Effenberger, Felix and Hagiwara, Masato and Hoffman, Benjamin and Keen, Sara and Kim, Diane and Lawton, Jane K. and Liu, Jen-Yu and Raskin, Aza and Pietquin, Olivier and Geist, Matthieu},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026}
}
Contact: [email protected], [email protected], [email protected], [email protected]