Some bash king-fu to reorder dataset generation in generate_dataset.bash.