Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSomething about Dataloader #4
Comments
|
Thanks for the report! BTW, I have add you to the acknowledgement section. Thanks for the report, it really important to know. |
|
: ) |
|
Indeed, images was shuffled, but each image can be augmented at most n different ways. The n is the same as batch size.If the batch size is too small, I guess the performance will be pool. |
torch.utils.data.Dataloader will use the same random seed in every batch. That means, every batch will use the same augmentation.You can have a look on my test.
visulize_dataloder.pdf
Simply add
worker_init_fn=lambda x: np.random.seed()will generate different random numbers for each batch, this might make your Pano Stretch Data Augmentation more powerful.reference:
pytorch/pytorch#5059
https://pytorch.org/docs/master/data.html#torch.utils.data.DataLoader