-
Notifications
You must be signed in to change notification settings - Fork 0
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
KNN computation using Keops post dataloader #1
Conversation
@npmhung, I have made the changes as we discussed, updated the README, renamed the files for better readability, and included the config file for post_knn usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does "prepare" function do exactly?
@npmhung, the |
In this branch, the key change is the introduction of
post_knn
in the config file, allowing KNN computation on the GPU after the dataloader instead of within the CPU-based dataloader. We use KeOps for KNN computation post-dataloader.The file
knn_post_dataloader_train.py
provides an example of how to implement this, whileknn_post_dataloader_utils.py
contains the necessary functions for retrieving correct values and performing KNN computation using KeOps.Additionally, the previous functionality remains unchanged—if post_knn is not specified in the config file, the codebase functions as in the previous version.