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

Consider creating patches on the fly #550

Open
rwood-97 opened this issue Jan 30, 2025 · 1 comment
Open

Consider creating patches on the fly #550

rwood-97 opened this issue Jan 30, 2025 · 1 comment
Labels
enhancement New feature or request new feature

Comments

@rwood-97
Copy link
Collaborator

At the moment, we download maps, then patchify and save each patch as a png.
This essentially means twice as much data, i.e. if we have 1TB of maps, then we will also have 1TB of patches so 2TB total.

An alternative approach would be to patchify and save the pixel bounds for each patch but not the patch image itself. Instead, we could then create the patch on the fly by loading and cropping the parent image or by loading only the desired pixels of the parent image. This would minimise the storage needs when running mapreader.

@st7ma784
Copy link

Taken. Code to achieve this added to PR #545

  • New Dataset class to override how patches are retrieved, given a patch df.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
Status: Backlog
Development

No branches or pull requests

2 participants