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

Adding support for h5py & fix memory pinning #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wesbz
Copy link

@wesbz wesbz commented Mar 13, 2021

Using h5py allows for faster building of the dataset.
I also noticed that your collate function first returned numpy arrays. However, memory pinning only works if the collate function returns Tensors or map/iterable of Tensors 1. I changed that and noticed faster training (I honestly cannot remember by how much it was faster).
Finally, I added the prefetch_factor argument which was missing in the DataLoaders.
Hope this will help.

Memory pinning only works if the collate function returns Tensors or maps/iterables of Tensors.
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

Successfully merging this pull request may close these issues.

1 participant