Weakly supervised learning of deformable part models and convolutional neural networks for object detection