Code to read training images added along with code to mine labels