Multi-task learning for object understanding