Self-supervised Learning of Motion Capture