Error in “fine-tune-sam-2.1” nb from Roboflow with my dataset. An error occurred during training. Could overlapping masks in my dataset be the issue?
I tried running the “fine-tune-sam-2.1.ipynb” notebook provided by Roboflow with only one change—I used my own dataset. My dataset has two classes, and I resized the images by stretching them to 1024×1024. The dataset is for an image segmentation task and is exported as SAM2 JSON. Other than that, I didn’t make any modifications.
When I ran the Python training command, I got an error. Since the dataset is the only thing I changed, I think the problem might be related to it. Could it be because the masks of the two classes in my dataset overlap?
I’ve attached screenshots of a sample annotated image from the dataset.
Link to image