This repository contains the Python code required to reproduce the simulation part of the paper "On the rate of convergence of image classifiers based on convolutional neural networks" from Kohler, Krzyżak, and Walter (2022) referenced below. The Python version used is Python 3.9.7. This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under project number 449102119. The Cifar-10 image dataset consisting of the real images from which the classes "cars" and "ships" were used can be downloaded from the link given below. In the Techincal Report "Learning Multiple Layers of Features from Tiny Images" from Alex Krizhevsky (2009) (for a link see below) this dataset of real images is described in more detail.