Imported from https://github.com/rhgao/Deep-MIML-Network