Background: On optical coherence tomography (OCT) scans of patients with inherited retinal diseases (IRDs), the outer nuclear layer (ONL) thickness measurement has been well established as a surrogate marker for photoreceptor preservation. Current automatic segmentation tools fail in OCT segmentation in IRDs, and manual segmentation is time consuming. Methods and Material: Patients with IRD and the availability of an OCT scan were screened for the present study. Additionally, OCT scans of patients without retinal disease were included, to provide training data for the artificial intelligence (AI). We trained a U-net based model on healthy patients and applied a domain adaption technique to IRD patients' scans. Results: We established an AI-based image segmentation algorithm that reliably segments the ONL in OCT scans of IRD patients. In a test dataset, the dice-score of the algorithm was 98.7%. Furthermore, we generated thickness maps of the full retinal thickness and the ONL layer for each patient. Conclusion: Accurate segmentation of anatomical layers on OCT scans plays a crucial role for predictive models linking retinal structure to visual function. The here-presented OCT image segmentation algorithm could provide the basis for further studies on IRDs.