Imported from https://github.com/mattfeng/recurrent-extreme-occlusion
