Imported from https://github.com/guochengqian/TENet