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

An error will be reported during the metric calculation process of self-created data set #562

Closed
snow-wind-001 opened this issue May 12, 2024 · 2 comments
Labels

Comments

@snow-wind-001
Copy link

snow-wind-001 commented May 12, 2024

image
We copied the format of the cars196 data set and made our own data set, with a total of 172 classes and a total of 450,000 pieces of data. The training process goes very smoothly, but when calculating indicators after performing val operations, a large amount of memory will be occupied until it crashes. Please help me solve the problem.

@snow-wind-001
Copy link
Author

@AlekseySh
Copy link
Contributor

AlekseySh commented May 12, 2024

Hi, @snow-wind-001

It's a known problem. The current implementation requires storing 450k x 450k floats in your memory. Right now I'm working on the solution to make it memory optimized. It will be released soon with OML 3.0 (in a week or max two).

You may wait or you may do the following:
Decrease the size of your validation set, for example, keep 45k items.
You may also want to split your validation set into non overlapping queries and galleries (for CARS they do overlap because is_query == is_gallery == True). The idea is you may use 20k items as queries and 25k as galleries because 25k * 20k << 45k * 45k. You may use DeepFashion as a reference because it has the same logic of query gallery split. It may be also convenient to use this function to check the format of the resulted dataframe. More info on datasets here.

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

No branches or pull requests

2 participants