Skip to content

Latest commit

 

History

History

README.md

Downloading the MUSIC Dataset

This folder contains the scripts for downloading the MUSIC dataset. The JSON files are downloaded from the original repository.

Prerequisites

pip install youtube_dl tqdm

Download the dataset

python download.py -i MUSIC_solo_videos.json -o data/MUSIC/solo/video

preprocess data

Extract audio from videos

python extract_audio.py -i data/MUSIC/solo/video -o data/MUSIC/solo/audio -s -e

Extract image frames from videos

python extract_frames.py -i data/MUSIC/solo/video -o data/MUSIC/solo/frames -s -e

Resize and crop images

python preprocess.py -i data/MUSIC/solo/frames -o data/MUSIC/solo/preprocessed -s -e