#!/bin/bash
if [ "$#" -lt 2 ]; then
numTestSequences=1000
if [ "$#" -lt 1 ]; then
numTrainingSequences=10000
else
numTrainingSequences=${1}
fi
else
numTestSequences=${2}
numTrainingSequences=${1}
fi
mkdir output
TRAININGDATA="training" # folder with the training data
OCCLUSIONDATA="${TRAININGDATA}/occlusions" # folder with the occlusion maps
OUTPUTDIR="output" # where to save all processing steps and the final output
### Transform images to grayscale
GRAYSCALEOUTPUT=${OUTPUTDIR}/SintelGray
## if you want to skip this step, comment lines below
## however, GRAYSCALEOUTPUT must be set to the directory with the grayscale transformed images
mkdir $GRAYSCALEOUTPUT
#./transformGrayscale.sh $TRAININGDATA $GRAYSCALEOUTPUT
### END grayscale transform
echo "Creating training sequences"
./createTrainingData.sh $numTrainingSequences "training"
echo "Creating test sequences"
./createTrainingData.sh $numTestSequences "test"