Automated segmentation and feature discovery of age-related macular degeneration and Stargardt disease via self-attended neural networks