Learning To Segment In Images And Videos With Different Forms Of Supervision