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

predict_new_data_mrc.py runs out of memory #6

Open
mhothorn opened this issue Apr 17, 2024 · 0 comments
Open

predict_new_data_mrc.py runs out of memory #6

mhothorn opened this issue Apr 17, 2024 · 0 comments

Comments

@mhothorn
Copy link

When running predict_new_data_mrc.py on even a relatively small number of .mrc files (~150), the following warning pops up

[INFO] Loading up model... [INFO] Loading up test images path ... predict_new_data_mrc.py:46: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam figure.max_open_warning). plt.figure(figsize=(40, 30)) Killed

After the warning, there are still new .jpg files written to CrypSegNat/output/results yet after a while the process fills up all RAM, then all /swap space and then runs out of memory (system has 192 GB or RAM and 92 GB of swap space).

$free -h total used free shared buff/cache available Mem: 187Gi 183Gi 2.0Gi 56Mi 2.5Gi 3.1Gi Swap: 90Gi 90Gi 0B

For comparison, predict_new_data_jpg.py on any of the provided test data runs to completion.

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