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

Slow loading of the dataset files #25

Open
ArashJavan opened this issue Aug 20, 2021 · 0 comments
Open

Slow loading of the dataset files #25

ArashJavan opened this issue Aug 20, 2021 · 0 comments

Comments

@ArashJavan
Copy link

Hello,
thanks a lot for your great work! Currently, I am trying to integrate the "completion3d" dataset into torch-point3d. To load the point cloud "h5" files I just used the same code as presented in this repo.

def load_h5(path, key='data', dtype=None, device=None):
    f = h5py.File(path, 'r')
    data = torch.tensor(f[key], dtype=dtype, device=device)
    f.close()
    return data

The only thing is that it takes about 200 milliseconds to load one h5-file, which is really a lot of time for ~50KB data!
My env:
OS: Ubunut 20.04
RAM: 32GB
Drive: SSD

Are you also observing the same effect?
Do you plan to provide the dataset in other formats like plain text-file!

Thanks

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