yolact
yolact copied to clipboard
IndexError: max(): Expected reduction dim 0 to have non-zero size.
I'm training Yolact model for my custom dataset and continuously getting this error: IndexError: max(): Expected reduction dim 0 to have non-zero size after uncertain iterations. I'm using pre-trained weights resnet50-19c8e357.pth and Yolact model. Sometimes it runs for 5-6 iteration and gives this error and sometimes it runs for 20-30 iteration and then after gives this error.
Below is the error trace.
overlaps size: torch.Size([0, 16368]) #I've printed this overlap shape for referance.
Traceback (most recent call last):
File "train.py", line 509, in
By going through this error partially I came to know because of Intersection over Union values could be zero for some images and during that it might be raising error. Any help on above will be much appreciated.
me too. ssame issue
Have you solve the issue? I had a same issue
maybe you can change your batch size
Ohh yess, sorry I forgot to mention here that the problem was assigned class id in annotation. Since, the model is considering background as a class 0, all the other class in dataset should have class id of greater than 1.