In the starter Detectron notebook we have seen that some of the images have incorrect sizes in the annotation file. It turns out that these images also have rotated masks, as we can see in this notebook :
Visualisation of Bad Annotations
While the number of images with this problem is relatively small, we can prevent these errors from being included in the training data by either rotating the masks or removing the images from the training set.