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

Walter Roberson
Walter Roberson 2022년 7월 28일
I have found statements online that YOLO v4 takes a lot of memory. I would have thought your system was large enough, though.
Try reducing the minibatch size. A paper I found online said that for YOLO v4, the optimal minibatch size is 2 or 3, and beyond that you do not get any performance or useful accuracy gains.
은석 최
은석 최 2022년 7월 28일
Thank you for your advice! I set the mini-batch size to 2, so it's resolved.
Jan
Jan 2022년 7월 28일
By the way: This is not tiwtter - no # before the tags. "error" is not useful as a tag.

댓글을 달려면 로그인하십시오.

답변 (1개)

Nihal Reddy
Nihal Reddy 2022년 10월 7일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 GPU Computing에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 7월 28일

답변:

2022년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by