maren11:

Before the training was running I got the error that the koordinate of my bounding boxes are not korrekt. xmin was higher than xmax.


There is a bug in the labelling process as per your message. Plot the data before training to see if the bounding boxes are correct without using any if checks.