Error while generation detector results

조회 수: 2 (최근 30일)
Divya
Divya 2024년 5월 10일
답변: Naren 2024년 5월 10일
I am using Yolov4 with darknet-53-coco. I have trained the detector but unable to generate detector results using
detectionResults = detect(detector,testData,Threshold=0.01);
After running the code I am getting the following error
Error using dlnetwork/predict
Execution failed during layer(s) 'conv_2'.
[features{:}] = predict(network, dlX, 'Acceleration',acceleration);
features = iPredictActivations(network, imgBatch, anchorBoxes, predictParams.Acceleration, isRotatedBox);
features = this.predict(Ipreprocessed, params);
[varargout{1:nargout}] = performDetect(detector, I, params);
Caused by:
Error using builtin
Out of memory.

답변 (1개)

Naren
Naren 2024년 5월 10일
Hello,
The issue seems to be due to low GPU memory. I suggest reducing the minibatch size, which could be effective. If the error still occurs even after reducing the minibatch size, another possible solution is to change the network to "tiny-yolov4ObjectDetector" instead of "csp-darknet53-coco". Apart from these options you can also try reducing the size of network input image.
Regards.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by