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 report same images are multiply generated when using multiple workers. #17

Open
akiraf0421 opened this issue Jul 7, 2022 · 0 comments

Comments

@akiraf0421
Copy link

When I use torch.utils.data.DataLoader init with multi worker and also using Cutout for transform, I observed same transformed images were generated. This number of images are same as number of workers. I guess this is because use of numpy.random in Cutout source code. In torchvision.transforms, numpy seems to be initialized by the same seed in each workers.

This issue can be fixed by replacing numpy.random with torch.randint in Cutout source code.

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

1 participant