CUDA ERROR OUT OF MEMORY

4 visualizzazioni (ultimi 30 giorni)
은석 최
은석 최 il 28 Lug 2022
Risposto: Nihal Reddy il 7 Ott 2022
CUDA_ERROR_OUT_OF_MEMORY occurred in the process of following the example below.
No changes have been made in the example.
The GPUs used are GeForce RTX 3060 VRAM 12GB and 32GB RAM.
I wonder if my equipment is insufficient or if I need to adjust the options.
  3 Commenti
은석 최
은석 최 il 28 Lug 2022
Thank you for your advice! I set the mini-batch size to 2, so it's resolved.
Jan
Jan il 28 Lug 2022
By the way: This is not tiwtter - no # before the tags. "error" is not useful as a tag.

Accedi per commentare.

Risposte (1)

Nihal Reddy
Nihal Reddy il 7 Ott 2022
It looks like a memory issue. Please try resetting your device using the command-
(reset(gpuDevice))
then put a breakpoint before the call to “yolov4ObjectDetector” function and check the available memory.
If the error persists, then check the size of input data and change the mini batch size accordingly to the memory available.
You can also query or select a GPU device using “gpuDevice” function.

Prodotti


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by