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

Preprocessing data with torchvision.transforms is much slower #37

Open
vhank opened this issue Jan 8, 2021 · 1 comment
Open

Preprocessing data with torchvision.transforms is much slower #37

vhank opened this issue Jan 8, 2021 · 1 comment

Comments

@vhank
Copy link

vhank commented Jan 8, 2021

I try preprocessing data with torchvision.transforms, such as ToTensor and RandomHorizontalFlip, and keeping other codes changed. I find that loading data becomes much slower. I wonder if you know the reason. Thank you!

@huanghoujing
Copy link
Owner

Hi, vhank. I did not try the code in your way, and I could not tell the reason for the problem you encountered. Sorry for that.

I recommend you not just change dataset preprocessing, but also change data loader into the one implemented by Pytorch.

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

2 participants