#!/bin/bash

# Modify this to your data directory
DATA_DIR=./training_data


# Real data
mkdir -p $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/Cat.zip -O $DATA_DIR/Real/Cat.zip -q --show-progress
unzip $DATA_DIR/Real/Cat.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/FurScene.zip -O $DATA_DIR/Real/FurScene.zip -q --show-progress
unzip $DATA_DIR/Real/FurScene.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/Pixiu.zip -O $DATA_DIR/Real/Pixiu.zip -q --show-progress
unzip $DATA_DIR/Real/Pixiu.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/Fish.zip -O $DATA_DIR/Real/Fish.zip -q --show-progress
unzip $DATA_DIR/Real/Fish.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/CatSmall.zip -O $DATA_DIR/Real/CatSmall.zip -q --show-progress
unzip $DATA_DIR/Real/CatSmall.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/CupFabric.zip -O $DATA_DIR/Real/CupFabric.zip -q --show-progress
unzip $DATA_DIR/Real/CupFabric.zip -d $DATA_DIR/Real

wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/Pikachu.zip.001 -O $DATA_DIR/Real/Pikachu.zip.001 -q --show-progress
wget https://igwebhost.azurewebsites.net/NRHints/Data/Real/Pikachu.zip.002 -O $DATA_DIR/Real/Pikachu.zip.002 -q --show-progress
cat $DATA_DIR/Real/Pikachu.zip.* > $DATA_DIR/Real/Pikachu.zip
rm -rf $DATA_DIR/Real/Pikachu.zip.*
unzip $DATA_DIR/Real/Pikachu.zip -d $DATA_DIR/Real


# Synthetic data
mkdir -p $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_Diffuse_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_Diffuse_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_Diffuse_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_Metal_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_Metal_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_Metal_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_Metal_Rough_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_Metal_Rough_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_Metal_Rough_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_Metal_VeryRough_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_Metal_VeryRough_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_Metal_VeryRough_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_Metal_Aniso_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_Metal_Aniso_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_Metal_Aniso_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_NonMetal_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_NonMetal_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_NonMetal_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_NonMetal_Rough_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_NonMetal_Rough_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_NonMetal_Rough_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_NonMetal_VeryRough_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_NonMetal_VeryRough_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_NonMetal_VeryRough_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_ShortFur_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_ShortFur_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_ShortFur_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_LongFur_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_LongFur_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_LongFur_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Cup_Plane_SSS_PL_500.zip -O $DATA_DIR/Synthetic/Cup_Plane_SSS_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Cup_Plane_SSS_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/FurBall_PL_500.zip -O $DATA_DIR/Synthetic/FurBall_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/FurBall_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Basket_PL_500.zip -O $DATA_DIR/Synthetic/Basket_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Basket_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Complex_Ball_PL_500.zip -O $DATA_DIR/Synthetic/Complex_Ball_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Complex_Ball_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Drums_PL_500.zip -O $DATA_DIR/Synthetic/Drums_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Drums_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Hotdog_PL_500.zip -O $DATA_DIR/Synthetic/Hotdog_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Hotdog_PL_500.zip -d $DATA_DIR/Synthetic

wget https://igwebhost.azurewebsites.net/NRHints/Data/Synthetic/Lego_PL_500.zip -O $DATA_DIR/Synthetic/Lego_PL_500.zip -q --show-progress
unzip $DATA_DIR/Synthetic/Lego_PL_500.zip -d $DATA_DIR/Synthetic
