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

Tandemvault image importer - possibility to divide by zero when calculating image's mean confidence score #268

Open
cjg89 opened this issue Sep 21, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cjg89
Copy link
Member

cjg89 commented Sep 21, 2021

https://github.com/UCF/Search-Service-Django/blob/master/images/management/commands/import-tandemvault-images.py#L284-L287

It's possible for a ZeroDivisionError error to occur here if data['labels'] is empty. Add some logic here to avoid dividing by zero if data['labels'] is empty by that point.

@cjg89 cjg89 added the bug Something isn't working label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants