Hello,
I need to have a data loader to be compatible with my model.
I want to run a model, say ResNet, on a dataset. In each epoch, I select for example 100 images randomly, find the top 20 images of those 100 selected images (lowest loss), and add these 20 to the next epoch and select 80 more.
In general, in each epoch, I need 100 images where 20 of them are top among the previous epoch and 80 of them are randomly chosen. Is there any way that I can implement this in the dataloder?
What I am thinking is to writing the bacth_sampler that handle these stuffs, but I am not sure how to tell him the top 20 images?
Thanks,