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.3.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.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ast_slizovskaia-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5e06838201e46822c9f09e3e4d5551e9848bb47b75c418c9b97a2a555bb05031
MD5 94b92eb3cc2a3401310e478ec98e88ea
BLAKE2b-256 94842ca0a15ff18815ac032907b5cc667ba6e1896f12a7790e060ffc9ffb7439

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ast_slizovskaia-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 08ad3e1ddeb0bdb73f57d86cbd1608c7bbe095b38ed99e95686b8f4b211fbb03
MD5 ce11ad8d1645fcf687ae4b0331091e1d
BLAKE2b-256 1610527d2ddcc0b732050026d99f8d656ded00e3b937cb369ce6e0313ca881bc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

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