Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating mask_roi_align for multiple masks #2

Open
EEvangelisti opened this issue Feb 17, 2022 · 0 comments
Open

Updating mask_roi_align for multiple masks #2

EEvangelisti opened this issue Feb 17, 2022 · 0 comments

Comments

@EEvangelisti
Copy link

Hello,
I am trying to adapt your very nice implementation to my needs. Basically, I have multiple (2 to 5) shapes on each image that I would like to identify. Unfortunately, the current implementation of mask_roi_align is designed for a single shape/mask per image and raises ValueError: could not broadcast input array due to the following line:
maskrois=np.zeros((batchlen,proposal_count,mask_size[0],mask_size[1],1))
Would you be able to suggest a way to allow for a variable number of masks, i.e. a more general value for the last dimension? Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant