Weakly supervised object detection with 2D and 3D regression neural networks