Cropped Objects , Not All Displayed
Hi @sugi-chan , First of all , thank you for sharing the wights of your model + the notebook , it helped me out a lot to run some experiments and get some feedbacks on some hypothesis , for a project that i'm undertaking. just one question though , when i plot the cropped , segmented regions , all what i get in the display is one object , but not all that have been segmented . do you have an explanation for this ? , thank you.


Cool to see someone else using this. So I am not completely sure... I basically did all of that work in the notebook and had it plotting inline there. Based on your screenshot it looks like your figure is being displayed in its own window so maybe some issues there?
In terms of code that might be giving you weird results
Other things might be the way I built out this loop to do the plotting from the notebook. It looks like I hard coded the number of objects to plot so it might be causing complications there
from the for loop for the cropping. you could probably adjust this to take variable numbers of things based on how many masks you are returning. maybe the len of the masks.
plot_figures(figures, 1,4)
might be good to also just check the structure of the masks that are coming out of the model in case there is some formatting issue. or seeing if there are things from the matterport mask rcnn tutorials that might be useful.
This line from cell 47 might be useful. I think this is just something out of the matterport balloons tutorial to show the masks.
display_images(np.transpose(r['masks'], [2, 0, 1]), cmap="Blues")
I haven't looked at this particular code in awhile and am probably not going to be doing active work with it. Hope this was at least a little bit helpful. best of luck, I'll try help where I can.
Thank you for the contribution , i'm really gratefull , thank's again.