← Open Source
YuanGongND

ast

Code for the Interspeech 2021 paper "AST: Audio Spectrogram Transformer".

ModelsAudio/Speech modelsJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.48k
Stars
245
Forks
+0
This week
2
Contributors
Created 2021-06-02 · Updated 2026-10-12 · #10195 today
Top developers
YuanGongNDJeffC0628

YuanGongND/ast is ranked 10,195 with 1,483 stars.

Same-category comparison

YuanGongND/ast is ranked 10,195 among these 8 peers; thu-ml/unidiffuser is ranked 10,179.

Same-category comparison
NameRankMetrics
yulunzhang/RCAN10,128
Language:
Python
Stars:
1,512
Forks:
320
Description:
PyTorch code for our ECCV 2018 paper "Image Super-Resolution Using Very Deep Residual Channel Attention Networks".
nlpyang/BertSum10,145
Language:
Python
Stars:
1,504
Forks:
410
Description:
Code for paper Fine-tune BERT for Extractive Summarization.
AITTSMD/MTCNN-Tensorflow10,148
Language:
Python
Stars:
1,502
Forks:
703
Description:
Reproduce MTCNN using Tensorflow.
thu-ml/unidiffuser10,179
Language:
Python
Stars:
1,488
Forks:
90
Description:
Code and models for the paper "One Transformer Fits All Distributions in Multi-Modal Diffusion".
sczhou/Upscale-A-Video10,212
Language:
Python
Stars:
1,478
Forks:
82
Description:
[CVPR 2024] Upscale-A-Video: Temporal-Consistent Diffusion Model for Real-World Video Super-Resolution.
facebookresearch/MobileLLM10,250
Language:
Python
Stars:
1,465
Forks:
94
Description:
MobileLLM Optimizing Sub-billion Parameter Language Models for On-Device Use Cases. In ICML 2024.
CStanKonrad/long_llama10,263
Language:
Python
Stars:
1,461
Forks:
84
Description:
LongLLaMA is a large language model capable of handling long contexts. It is based on OpenLLaMA and fine-tuned with the Focused Transformer (FoT) method.
facebookresearch/MaskFormer10,269
Language:
Python
Stars:
1,459
Forks:
156
Description:
Per-Pixel Classification is Not All You Need for Semantic Segmentation (NeurIPS 2021, spotlight).
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryModels
SubcategoryAudio/Speech models
Stars1,483
Forks245
Contributors2
Created date2021-06-02
Updated date2026-10-12
Stars in 1 day0
Stars in 7 days0
Rank10,195
Previous rank10,213
Rank change18
7-day stars rank12,543
Previous 7-day stars rank12,581
7-day stars rank change38
Total stars rank8,162
Previous total stars rank8,155
Total stars rank change-7
CountryUSA
README summary

AST: Audio Spectrogram Transformer News Introduction Citing Getting Started ESC-50 Recipe Speechcommands Recipe AudioSet Recipe Pretrained Models Use Pretrained Model For Downstream Tasks Contact News May, 2023: We have released demo for our audio large language model LTU (listen, think, and understand) that can do zero-shot audio classification and advanced reasoning. Try the online interactive demo **[[here]]( November, 2022: We decoupe and hyper-parameters by moving hyper-parameters from and to , so that it is easier to adapt

the scripts to new datasets. This might cause a bug, please report if you have any issue running any recipe. May, 2022: It was found that newer package has different behavior with older ones in SpecAugment and will cause a bug. March, 2022: We released a new preprint *CMKD: CNN/Transformer-Based Cross-Model Knowledge Distillation for Audio Classification*, where we proposed a knowledge distillation based method to further improve the AST model performance without changing its architecture. Feb, 2022

: The Self-Supervised AST (SSAST) code is released [[**here**]]( SSAST use self-supervised pretraining instead of supervised ImageNet pretraining, so it supports arbitrary patch shape and size (e. , a temperal frame and a square patch) with a good performance. Nov, 2021: The PSLA training pipeline used to train AST and baseline efficientnet model code is released [[**here**]]( It is a strong audio classification training pipeline that can be used for most deep learning models. Also, it has a one-click

FSD50K recipe that achieves SOTA 0. Introduction This repository contains the official implementation (in PyTorch) of the **Audio Spectrogram Transformer (AST)** proposed in the Interspeech 2021 paper AST: Audio Spectrogram Transformer (Yuan Gong, Yu-An Chung, James Glass). AST is the first **convolution-free, purely** attention-based model for audio classification which supports variable length input and can be applied to various tasks. We evaluate AST on various audio classification benchmarks, where it achieves new state-of-the-art results

of 0. For details, please refer to the paper and the ISCA SIGML talk. AST can be used with a few lines of code, and we also provide recipes to reproduce the SOTA results on AudioSet, ESC-50, and Speechcommands with almost one click. The AST model file is in , the recipes are in , when you run , it will call , which will then call and , which will then call . Citing Please cite our paper(s) if you find this repository

useful. The first paper proposes the Audio Spectrogram Transformer while the second paper describes the training pipeline that we applied on AST to achieve the new state-of-the-art on AudioSet. Clone or download this repository and set it as the working directory, create a virtual environment and install the dependencies. **Parameters:**\ : The number of classes (default: ). \ : The stride of patch spliting on the frequency dimension, for 16\*16 patchs, fstride=16 means no overlap, fstride=10 means overlap

of 6 (used in the paper). (default: )\ : The stride of patch spliting on the time dimension, for 16*16 patchs

Frequently asked questions

How many stars and forks are recorded?

YuanGongND/ast has 1,483 stars and 245 forks.

What is the repository rank?

YuanGongND/ast is ranked 10,195.

What language and category are recorded?

YuanGongND/ast has 1,483 stars, uses Jupyter Notebook and belongs to Models.

Which repository is closest in rank?

YuanGongND/ast is compared with thu-ml/unidiffuser, ranked 10,179 with 1,488 stars.

Nearby in the ranking
Similar items