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

Out of (host) memory at Data Pre-Processing step #214

Open
bobonannan opened this issue Mar 13, 2024 · 3 comments
Open

Out of (host) memory at Data Pre-Processing step #214

bobonannan opened this issue Mar 13, 2024 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@bobonannan
Copy link

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 30.7 GiB for an array with shape (1417, 2260, 2573) and data type float32
图片bug
how to set patch size?
and how to resolve the question of memory?

@qin-yu
Copy link
Collaborator

qin-yu commented Mar 13, 2024

Hey @bobonannan I guess this error is from the very first step of plantseg, i.e. pre-processing? My guess is that your RAM is not big enough for keep this volume. This is, in turn, due to the rescaling of pre-processing, which makes your original volume huge. The first thing I would do is to see if the rescaling is really necessary. We provide networks trained by the same data with different resolution. You may choose a network of lower resolution so you don't have to rescale the data.

Please have a look at https://github.com/hci-unihd/plant-seg?tab=readme-ov-file#pre-trained-networks

@qin-yu
Copy link
Collaborator

qin-yu commented Mar 13, 2024

We currently don't support pre-/post-processing by patch. Please confirm this @lorenzocerrone

@qin-yu qin-yu changed the title windows: numpy.core._exceptions._ArrayMemoryError: Unable to allocate 30.7 GiB for an array with shape (1417, 2260, 2573) and data type float32 Out of (host) memory at Data Pre-Processing step Apr 15, 2024
@qin-yu qin-yu added the question Further information is requested label Apr 15, 2024
@qin-yu
Copy link
Collaborator

qin-yu commented Apr 15, 2024

Hey @bobonannan is this solved or do you still need more assistance?

@qin-yu qin-yu added enhancement New feature or request labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants