Skip to main content

Test implementation for Audio Spectrogram Transformer by Olga Slizovskaia

This repository provides a test implementation of the Audio Spectrogram Transformer described in the original paper. Please, note, that this implementation is lacking several important details compared to the original paper, such as dataset normalization, data augmentation routines and optimal hyperparameters selection. The results that you will obtain using the code provided in this repository, will differ severely from the results reported in the original paper.

Requirements

This repository requires a working python3.9 installation and uses poetry for dependency management and packaging.
Please, install poetry using the official guidelines.

You also need to download the ESC-50 dataset and specify the path to the dataset as dataset_dir parameter in hparams.py configuration file.

Installation

To install all necessary dependencies, run:

poetry env use 3.9

poetry install

Usage

We use the standard 5-fold cross-validation scheme for evaluating the classification model. The folds are defined in the datasets meta file and hardcoded for training. To train and evaluate the model, run:

python train.py

or

poetry run python train.py .

Download files

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

Source Distribution

ast_slizovskaia-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

ast_slizovskaia-0.1.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file ast_slizovskaia-0.1.2.tar.gz.

File metadata

  • Download URL: ast_slizovskaia-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.8 Darwin/20.5.0

File hashes

Hashes for ast_slizovskaia-0.1.2.tar.gz
Algorithm Hash digest
SHA256 51e466fc990c34ca91a4e3f028872289088e13a44115a29ed49435d3491cd887
MD5 93efde1fc59b12e52d74c09e94ea6558
BLAKE2b-256 afd7c8bbf30acf5deb5e78f2a494697a9bd5f84c2e91a8f9eda7cce257736fef

See more details on using hashes here.

File details

Details for the file ast_slizovskaia-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ast_slizovskaia-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.8 Darwin/20.5.0

File hashes

Hashes for ast_slizovskaia-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 285929e5aeded30c502e279d7b419e79bbb68aae11eb544f3fc4220dd7792c2a
MD5 1c9fdaf8d2d8490232da9d26bf2a22a8
BLAKE2b-256 33d27329f2fe87e002a18b143edce45c5c38a6dc95138a7f5ad9df32dbd9f1f2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page