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

Explicit method for adding boundaries #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

JohannesTheo
Copy link

This PR adds an additional method to add boundaries without changing current behavior.

It's very similar to the existing methods but can be invoked manually. Also, it allows to explicitly specify the number of cpus in the multiprocessing step. In our case, we get 4x faster conversion times by using cpu_num << multiprocessing.cpu_count() since IPC is very expensive and our system has many cores. Note that we also untangle the conversion of cocoGt and cocoDt by adding get_boundary as an argument to loadRes instead of following what was done in cocoGt. This actually does change the current behavior slightly but should be of no concern since COCOeval will run any missing conversion anyway. On the other hand, the user gains more flexibility and control of when to run the conversion!

The PR also includes as small fix for the deprecation warning np.float -> float

Let me know what you think :)
Best,
Johannes

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

Successfully merging this pull request may close these issues.

1 participant