I have trained maskrcnn (https://github.com/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/Beta%20notebooks/MaskRCNN_ZeroCostDL4Mic.ipynb) on nucleus dataset with cancer and non-cancerous class. I have resized images into 256 x 256.
Notebook works smoothly till section 5 but in section 6, I got following error : "
ValueError: Layer #391 (named "mrcnn_bbox_fc"), weight <tf.Variable 'mrcnn_bbox_fc_6/kernel:0' shape=(1024, 4) dtype=float32> has shape (1024, 4), but the saved weight has shape (1024, 12) ".
Used .h5 model file I trained for generating prediction. My input image is in .png format.
I have trained maskrcnn (https://github.com/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/Beta%20notebooks/MaskRCNN_ZeroCostDL4Mic.ipynb) on nucleus dataset with cancer and non-cancerous class. I have resized images into 256 x 256. Notebook works smoothly till section 5 but in section 6, I got following error : " ValueError: Layer #391 (named "mrcnn_bbox_fc"), weight <tf.Variable 'mrcnn_bbox_fc_6/kernel:0' shape=(1024, 4) dtype=float32> has shape (1024, 4), but the saved weight has shape (1024, 12) ". Used .h5 model file I trained for generating prediction. My input image is in .png format.