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

Handle nomask result in cluster_prediction #3

Open
RomRoc opened this issue Nov 9, 2018 · 0 comments
Open

Handle nomask result in cluster_prediction #3

RomRoc opened this issue Nov 9, 2018 · 0 comments

Comments

@RomRoc
Copy link

RomRoc commented Nov 9, 2018

Thanks for your interesting repo, it inspired me a lot in my projects.
I think there is a small issue in cluster_prediction function:

if np.max(overlaps[mm]) > 0.1:

In my project I get error when overlaps[mm] is empty.
I modified line in this way to solve it:
if overlaps[mm].size != 0 and np.max(overlaps[mm]) > 0.1:

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