Skip to content
프로젝트

소개

Code for the "PyTorch for Audio + Music Processing" series on The Sound of AI YouTube channel.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

PytorchForAudio

Code for the "PyTorch for Audio + Music Processing" series on The Sound of AI YouTube channel.

This repository is a comprehensive collection of resources and code for understanding and implementing deep learning models for audio tasks using PyTorch and Torchaudio. It serves as a practical guide, moving from basic neural network implementations to building a complete sound classification system (CNN) trained on the UrbanSound8K dataset.

Maintained Python 3.11 PyTorch Torchaudio Pandas License

Note on Versioning

While this v2 release is fully functional and optimized for current environments, it may differ from the original version shown in the course. The codebase has been updated to reflect modern best practices and improved dependency management. Consequently, the original course version has been deprecated; however, it remains available in the legacy branch for those wishing to follow the video content exactly.

Table of Contents


Dataset Setup (UrbanSound8K)

To run the sound classification lessons (8-10), you will need the UrbanSound8K dataset. We provide an automated downloader to handle the acquisition, path sanitization, and folder organization for you.

  • Quick Start: Run python dataset_downloader.py from the root directory.
  • Options: Supports --COPY flag to preserve your Kaggle cache.

Full Instructions: Please check the Instructions UrbanSound8K file for help using the downloader script or manual download steps.

Course Structure

Introduction & Basics

  1. Course Overview: Video | Slides
  2. Implementing and Training a Neural Network: Video | Code
  3. Making Predictions with PyTorch Models: Video | Code

Audio Data Processing

  1. Custom Audio PyTorch Dataset: Video | Code
  2. Extracting Mel Spectrograms: Video | Code
  3. Pre-processing Audio (Padding/Truncating): Video | Code
  4. Pre-processing on GPU: Video | Code

Sound Classification Project (UrbanSound8K)

  1. Implementing a CNN for Sound Classification: Video | Code
  2. Training a Sound Classifier: Video | Code
  3. Predictions with a Sound Classifier: Video | Code

How to Run the Scripts

To ensure the models and scripts execute correctly, please follow these steps from your terminal:

1. Prepare the Environment (Recommended)

Before running inference, ensure you have the necessary dependencies installed:

pip install -r requirements.txt

2. Navigate to the Lesson Folder

Each class is self-contained. Move into the specific directory for the lesson you are studying:

cd 'class/folder/name'  # Replace with the specific directory path (ensure it is enclosed in quotes).

3. Execute the Script

Run the main script using Python:

python inference.py  # Replace with the specific script name

관련 프로젝트 살펴보기

불러오는 중…