Imported from https://github.com/thusiyuan/holistic_scene_parsing