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

[Bug] Got weight with same value when running examples. #80

Closed
HaoKang-Timmy opened this issue Oct 6, 2022 · 3 comments
Closed

[Bug] Got weight with same value when running examples. #80

HaoKang-Timmy opened this issue Oct 6, 2022 · 3 comments

Comments

@HaoKang-Timmy
Copy link

Hi, I tested the example with Supervised learning and Glister strategy.
https://github.com/decile-team/cords/blob/main/examples/SL/image_classification/python_notebooks/CORDS_SL_CIFAR10_Custom_Train.ipynb
But when I print the weight of the train loader, they are all 1.0. I believe that by using Glister strategy, we will get different weights.

tensor([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
        1., 1.], device='cuda:0')

Is that a bug or something special?
Thanks.

@HaoKang-Timmy
Copy link
Author

HaoKang-Timmy commented Oct 7, 2022

Could you please have a look at this? @krishnatejakk,@noilreed

@krishnatejakk
Copy link
Collaborator

@HaoKang-Timmy GLISTER is not a weighted subset selection problem. Hence, it always returns equal weights. We include weights with all strategies to make the training framework consistent.

@HaoKang-Timmy
Copy link
Author

HaoKang-Timmy commented Oct 17, 2022 via email

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

2 participants