Open MatchaCookies opened 2 years ago
@MatchaCookies How big are your images? Images cannot be too large.
@MatchaCookies How big are your images? Images cannot be too large.
Could I ask you the limit of the images? Could you please tell me how to find it? I supposed that it should be smaller than 1616 x ____ .
Thank you very much in advance!
@LiuxinYLX Hello, I used mask r-cnn in 2021. At the time, I used the 1024x1024 image size. I hope this information helps you!
@LiuxinYLX Hello, I used mask r-cnn in 2021. At the time, I used the 1024x1024 image size. I hope this information helps you!
OK I get it. Thank you very much for responding me so quickly and sweet >3
Hi I am doing a custom training of Mask RCNN with my dataset of different sizes and resolution of images. I have already done annotating using VGG annotating tool. I started training but Index errors appear while training:
Traceback (most recent call last): File "/content/drive/MyDrive/Train_Crack_June19/mrcnn/model.py", line 1870, in data_generator use_mini_mask=config.USE_MINI_MASK) File "/content/drive/MyDrive/Train_Crack_June19/mrcnn/model.py", line 1385, in load_image_gt mask, class_ids = dataset.load_mask(image_id) File "coco.py", line 316, in load_mask mask[rr, cc, i] = 1 IndexError: index 402 is out of bounds for axis 0 with size 402 ERROR:root:Error processing image {'id': '00401.jpg', 'source': 'object', 'path': 'Dataset/val/00401.jpg', 'width': 224, 'height': 224, 'polygons': [{'name': 'polygon', 'all_points_x': [5, 29, 43, 57, 63, 71, 71, 63, 61, 8, 6], 'all_points_y': [246, 250, 250, 249, 243, 243, 246, 253, 255, 255, 253]}, {'name': 'polygon', 'all_points_x': [97, 90, 105, 106, 116, 113, 106, 104, 108, 94, 86, 77, 72, 62, 57, 51, 38, 31, 12, 24, 41, 54, 73, 67, 88, 99, 84, 71, 83], 'all_points_y': [3, 18, 39, 45, 57, 78, 94, 127, 134, 142, 155, 169, 173, 195, 211, 218, 222, 223, 223, 212, 206, 174, 156, 148, 128, 63, 45, 18, 0]}], 'num_ids': [1, 1]} Traceback (most recent call last): File "/content/drive/MyDrive/Train_Crack_June19/mrcnn/model.py", line 1870, in data_generator use_mini_mask=config.USE_MINI_MASK) File "/content/drive/MyDrive/Train_Crack_June19/mrcnn/model.py", line 1385, in load_image_gt mask, class_ids = dataset.load_mask(image_id) File "coco.py", line 316, in load_mask mask[rr, cc, i] = 1 IndexError: index 243 is out of bounds for axis 0 with size 224
and so on..
This is my code `
`
does training with different sized images causes it?
I saw this answer https://github.com/matterport/Mask_RCNN/issues/636#issuecomment-447751080 but all it did was modify the "mask[rr,cc,i] = 1". I reviewed my annotations but it doesn't have any overlapping vertex.
If I will modify the "mask[rr,cc,i] = 1" will this affect my training accuracy? Hoping for answers. Thanks.