Escaping local minima through hierarchical model selection: Automatic object discovery, segmentation, and tracking in video