Imported from https://github.com/XinlueLiu/TensorFlow-classifiers