Views
No views yet
https://www.earthspecies.org/about-us#supporthttps://github.com/earthspecies/avexhttps://github.com/microsoft/unilm/tree/master/beatsavex to be installed.pip install avexuv add avex1from avex import load_model
2
3model = load_model("esp_aves2_naturelm_audio_v1_beats", device="cuda")1import torch
2from avex import load_model
3
4model = load_model("esp_aves2_naturelm_audio_v1_beats", device="cuda")
5
6with torch.no_grad():
7 embeddings = model(audio_tensor)
8 # Shape: (batch, time_steps, 768) for BEATs
9
10# Pool to get fixed-size embedding
11embedding = embeddings.mean(dim=1) # Shape: (batch, 768)1from avex.models.probes import build_probe_from_config
2from avex.configs import ProbeConfig
3
4# Load backbone for feature extraction
5base = load_model("esp_aves2_naturelm_audio_v1_beats", device="cuda")
6
7# Define a probe head for your task
8probe_config = ProbeConfig(
9 probe_type="linear",
10 target_layers=["last_layer"],
11 aggregation="mean",
12 freeze_backbone=True,
13 online_training=True,
14)
15
16probe = build_probe_from_config(
17 probe_config=probe_config,
18 base_model=base,
19 num_classes=10, # Your number of classes
20 device="cuda",
21)https://github.com/earthspecies/beanshttps://huggingface.co/datasets/DBD-research-group/BirdSet| Benchmark | Task | Metric | Score |
|---|---|---|---|
| BEANS Classification | Probe | Accuracy | 0.804 |
| BEANS Classification | Retrieval | ROC AUC | 0.774 |
| BEANS Classification | Clustering | NMI | 0.560 |
| BEANS Detection | Probe | mAP | 0.385 |
| BEANS Detection | Retrieval | ROC AUC | 0.724 |
| BirdSet | Probe | mAP | 0.223 |
| BirdSet | Retrieval | ROC AUC | 0.723 |
| Individual ID | Probe | Accuracy | 0.410 |
| Individual ID | Retrieval | ROC AUC | 0.645 |
| Vocal Repertoire | Retrieval | ROC AUC | 0.811 |
| Vocal Repertoire | Clustering | NMI | 0.552 |
1@inproceedings{miron2025matters,
2 title={What Matters for Bioacoustic Encoding},
3 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},
4 booktitle={The Fourteenth International Conference on Learning Representations},
5 year={2026}
6}marius@earthspecies.org, david@earthspecies.org, milad@earthspecies.org, gagan@earthspecies.org