Object discovery and representation networks