-
Notifications
You must be signed in to change notification settings - Fork 179
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
change indices argument during training? #152
Comments
@rraju1 there is a parameter Hope it helps! (feel free to reopen if it doesn't work for you) |
@GuillaumeLeclerc I tried your suggestion but it didn't update number of batches the network was processing (going from full set to a subset). But when I changed |
Happy that it worked for you. Enjoy FFCV! |
I found it didn't work when I change the indices of a dataloader using ffcv/examples/cifar/train_cifar.py Line 69 in bf07b5c
|
Thank you, @rraju1! It seems to work here too. |
Hi,
Thanks for the amazing work. My question is kind of basic. I want to know if I can change the indices the loader accesses during training. I'll try to explain through the use of an example. Suppose my dataset is [1..100] and I want to train on the set [0..49] on one epoch and on the set [50..100] for the subsequent epoch and I want to alternate between these two sets. In Pytorch, I can achieve this by changing the set of indices to be sampled with the
SubsetRandomSampler
class. Can I do something similar with ffcv or do I have to recompile my dataloader every epoch?The text was updated successfully, but these errors were encountered: