#!/bin/bash
SLAKH_DATASET_DIR=${1:-"./datasets/slakh2100"}

# Set up paths
mkdir -p $SLAKH_DATASET_DIR
cd $SLAKH_DATASET_DIR

# Download dataset from HDFS
hdfs dfs -get hdfs://haruna/home/byte_speech_sv/datasets/music/slakh2100/slakh2100_flac_orig.tar.gz "slakh2100_flac_orig.tar.gz"

# Unzip dataset
tar -zxvf "slakh2100_flac_orig.tar.gz"