Open shahabe opened 4 years ago
@shahabe can you please check your annotations since the mask loss is very high compared to box loss
@abhigoku10 Thank you for your reply. I checked the annotations and they are alright. Actually this error happens randomly in differnt iterations.
@shahabe for me the exploding of mask loss values occurs due to wrong annotations in my training and validation because ur box loss values are correct so
Would you please elaborate how your masks and annotations were wrong? When I check the annotations on the images visually, I don't see any problem.
Yeah that mask loss looks very suspect. Are your masks in polygon or RLE form? Both are fine, but could it be that your polygon is being interpreted as an RLE or visa versa?
When you visualize the masks, are you visualizing them externally or within YOLACT itself?
I use polygon masks and visualize them externally. Everything is fine when I see it. I even tried to give onle one image for training to just test the training process and I got the same error.
How should I visualize the masks in yolact? Thank you.
@shahabe few of the time when you see the viz of the masks its properly but internally due to one of the format the mask polygon region will be bleeded into other class suggest you to look into the formation of the labels and conversion to coco format
@shahabe On this line: https://github.com/dbolya/yolact/blob/db81124874817895db69f2dc443f5c24e0e3f491/data/coco.py#L176 you should just be able to add:
import matplotlib.pyplot as plt
plt.imshow(img) # The colors will be weird, don't worry about that
plt.show()
for i in range(masks.shape[0]):
plt.imshow(masks[i])
plt.show()
Then run training with --num_workers=0
.
I am training over my costum data. The labels are in COCO json format. As you can see from the folloaing error, It trians over iterations and evalute them but after a while it crashes compalining about the a tensor size.
Where do you think the problem is? Thank you in advance.