Imported from https://github.com/yuanyuanli85/Stacked_Hourglass_Network_Keras