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.
Metadata
Release files for aces-metric 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aces_metric-0.0.5.tar.gz | 12.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aces_metric-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / aces_metric-0.0.5.tar.gz
| Download URL | aces_metric-0.0.5.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
331f416e68c3446fa6dc311cb0beb5ef3677895023c6f919582ba4614ba85294
|
|
BLAKE2b-256 checksum How to use checksums |
4c34f74481c94c05b3d6045baf3d433a4d8940471189f92ba4e01bf9ead878a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / aces_metric-0.0.5-py3-none-any.whl
| Download URL | aces_metric-0.0.5-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5962b256d8110743f2e2aed0491829aa16e931508c31fa858f8eee06d9b0ba31
|
|
BLAKE2b-256 checksum How to use checksums |
661efb665f351f177c4eccd7af8d6ee9844e629d0b8f16681494e0eefca1694f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for aces-metric 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.