Skip to content

PyTorch implementation of YAMNet model for audio classification

Notifications You must be signed in to change notification settings

sami-hatna66/yamnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch YAMNet

This repository implements the YAMNet model for audio classification in PyTorch. YAMNet was originally released in TensorFlow by Google. This implementation is adapted from Torch AudioSet, which only supports inference using pretrained weights. In contrast, this version adds full support for training from scratch. It also adds support for an enhanced version of YAMNet which replaces the MobileNetV1 backbone with MobileNetV3.

architecture

Usage

example.py contains example code training YAMNet on the ESC50 dataset. The project contains dataloaders and scripts for downloading the ESC50 and FSD50K datasets for audio classification. Training YAMNet on ESC50 is as simple as the following:

pip install -r requirements.txt
./download_esc50.sh
python3 example.py ./ESC-50-master ./log.txt ./ckpt.pt

About

PyTorch implementation of YAMNet model for audio classification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published