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

Add efficient Data loader for image in pipeline #5

Open
Pipe-Runner opened this issue Apr 28, 2020 · 1 comment
Open

Add efficient Data loader for image in pipeline #5

Pipe-Runner opened this issue Apr 28, 2020 · 1 comment

Comments

@Pipe-Runner
Copy link
Collaborator

Load image paths and labels into DataFrame
The dataset images were loaded into NumPy arrays, and saved as .npy files. This allows them to be loaded up really fast, preventing the data loading process from bottlenecking the GPU training.

When loading the images from JPEGs, the CPU is at max usage and the GPU usage dips occasionally between batches.

When loading the images from .npy files, the CPU usage is less than max and the GPU usage is more consistent. So it helps :)

@Pipe-Runner
Copy link
Collaborator Author

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