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

data reading speed #14

Open
acolijn opened this issue Oct 13, 2023 · 1 comment
Open

data reading speed #14

acolijn opened this issue Oct 13, 2023 · 1 comment

Comments

@acolijn
Copy link
Owner

acolijn commented Oct 13, 2023

So with the new data format we can read files quickly. I tried on a single file:

with h5py.File(file, 'r') as f:
group = f['events/']
data = {}
for name, dataset in group.items():
data[name] = np.array(dataset)

len(data)

Takes 0.6s to read 10k events. Time to modify event_reader.py

@cfuselli
Copy link
Collaborator

We need to adapt the functions in the model train files to use the new way of reading data

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