Skip to main content

ACES metric for evaluating automated audio captioning models based on the semantics of sounds

Project description

ACES

This is the repository of Audio Captioning Evaluation on Semantics of Sound (ACES).

Corresponding paper: https://arxiv.org/abs/2403.18572.

In here you will find the instructions how to train an ACES model and calculate statistics.

Installation

pip install aces-metric

Usage

The candidates can be a list, the references can be a list or a list of lists.

from aces import get_aces_score
candidates = ["a bunch of birds are singing"]
references = ["birds are chirping and singing loudly in the forest"]
score = get_aces_score(candidates, references, average=True)

Semantics of sounds

To get an output of classes of semantic groups from a caption:

from transformers import pipeline
pipe = pipeline("token-classification", "gijs/aces-roberta-13", aggregation_strategy="simple")
pipe("Bird chirps in the tree while a car hums")

Evaluation

All the code that is used to evaluate different models for the research paper can be found in the evaluation folder on the github. Particularly, the model evaluation can be found in evaluation/eval.py, and information about the FENSE experiment can be found in evaluation/fense_experiment/main.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aces_metric-0.0.5.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aces_metric-0.0.5-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file aces_metric-0.0.5.tar.gz.

File metadata

  • Download URL: aces_metric-0.0.5.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for aces_metric-0.0.5.tar.gz
Algorithm Hash digest
SHA256 331f416e68c3446fa6dc311cb0beb5ef3677895023c6f919582ba4614ba85294
MD5 c49056402a5673d46cc2b539ac69ed8b
BLAKE2b-256 4c34f74481c94c05b3d6045baf3d433a4d8940471189f92ba4e01bf9ead878a4

See more details on using hashes here.

File details

Details for the file aces_metric-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: aces_metric-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for aces_metric-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5962b256d8110743f2e2aed0491829aa16e931508c31fa858f8eee06d9b0ba31
MD5 cb584b714513c8243cd9b6b300cbac9c
BLAKE2b-256 661efb665f351f177c4eccd7af8d6ee9844e629d0b8f16681494e0eefca1694f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page