Hi,
I need to have sequential data samples in each mini batch (frames of a video). Using torch.utils.data.DataLoader, and shuffle =true, it shuffles data indices within each mini batch, and shuffle=false return the mini batches in order.
How can I have random mini batches containing unshuffled data samples?
I used new_dataloader = random.sample(list(dataloader) , len(dataloader)), but this occupies a huge memory. Is there any other mechanism in Pytorch?
I hope you can help me:)