Skip to content

Instantly share code, notes, and snippets.

@yshean
Last active August 29, 2015 14:25
Show Gist options
  • Save yshean/f5a9c15c95f839853999 to your computer and use it in GitHub Desktop.
Save yshean/f5a9c15c95f839853999 to your computer and use it in GitHub Desktop.
Load testing dataset for slice 1_01
#!/bin/bash
# This is an example of loading test dataset for slice 1_01
# This will serve as a template for loading test dataset for other slices
# Require load-images-test.lua to be hosted on S3
# After this run load-test-slice.sh for each of the other slices
slice='1_01'
cd ~/demos/load-data
mv load-images.lua load-images-train.lua
wget https://s3-ap-southeast-1.amazonaws.com/highway-dl/exp1/load-images-test.lua
th load-images-test.lua --dir HighwayPreprocessed/Test/${slice}
tar cvzf spatial_${slice}_data_test.tar.gz test.ascii
aws s3 cp spatial_${slice}_data_test.tar.gz s3://highway-dl/exp1/test-data/spatial_${slice}_data_test.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment