SUYEgit / Surgery-Robot-Detection-Segmentation

Object detection and segmentation for a surgery robot using Mask-RCNN on Python 3, Keras, and TensorFlow..
Other
181 stars 83 forks source link

accuracy/precision calculation #13

Open padmaksha18 opened 5 years ago

padmaksha18 commented 5 years ago

Can you kindly explain me why this dimension has been used in this prediction code. masks_prediction = np.zeros((1200, 1600, len(file_names))) . Because my images on which i am running prediction are of different shapes and naturally it is throwing tensor dimension mismatch error in this line. masks_prediction[:,:,i] = merged_mask But when, i am resizing the image to this (1200, 1600) dimension, the masks are not formed in the object in the image, infact the image is totally distorted. So no use of calculating any accuracy/precision here. How can i overcome this? Do you suggest training with this specific dimension as during train, i just kept it as 1024 * 1024. Kindly guide here. Thanks a lot.

FloBr49 commented 3 years ago

@padmaksha18 did you get a solution for your problem?