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

Prediction fails with OOM #16

Open
constantinpape opened this issue Dec 15, 2024 · 1 comment
Open

Prediction fails with OOM #16

constantinpape opened this issue Dec 15, 2024 · 1 comment

Comments

@constantinpape
Copy link
Contributor

python D:/constantin_Gits/flamingo-tools/scripts/prediction/run_prediction_distance_unet.py -i D:\DATA\M_LR_000155_L\2_converted_stitching\M_LR_000155_L.n5 -k setup2/timepoint0/s0 -m D:/constantin_Gits/Models/First_UnetModel_forSGNs/checkpoints/model_s0 -o D:\DATA\M_LR_000155_L\Predictions\SGNSingleTile02_from_n5

I get a CUDA out of memory error:

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 273.38 GiB. GPU 0 has a total capacity of 31.99 GiB of which 0 bytes is free. Of the allocated memory 39.03 GiB is allocated by PyTorch, and 3.22 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

@constantinpape
Copy link
Contributor Author

Likely due to wrong tile shape

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