Error generating a makefile Code Generation to Jetson

function tinyyolov4cocoDetect(cameraName,resolution)
%#codegen
% Copyright 2022 The MathWorks, Inc.
persistent yolov4Obj;
if isempty(yolov4Obj)
yolov4Obj = coder.loadDeepLearningNetwork('tinyyolov4coco.mat');
end
% Initialize the Jetson camera object
hwobj = jetson;
camObj = camera(hwobj,cameraName,resolution);
dispObj = imageDisplay(hwobj);
for k = 1:10000
% Capture the image from the Jetson camera hardware.
I = snapshot(camObj);
% Call to detect method
[bboxes, ~, labels] = detect(yolov4Obj, I, 'Threshold', 0.3);
% Convert categorical labels to cell array of character vectors
labels = cellstr(labels);
% Annotate detections in the image.
outImg = insertObjectAnnotation(I, 'rectangle', bboxes, labels);
rotatedImg = imrotate(outImg, 90); % Specify the angle of rotation
image(dispObj, rotatedImg);
end
end
This is my code.
codegen('-config ',cfg,'-args',inputArgs,'tinyyolov4cocoDetect','-report');
Error generating Makefile while generating code for network tinyyolov4coco0_0. The system cannot find
the file specified.
Code generation failed: View Error Report
How to fix this error?

回答 (1 件)

Ram Kokku
Ram Kokku 2023 年 12 月 17 日
編集済み: Ram Kokku 2023 年 12 月 17 日

0 投票

@Ahmed Tamer, can you check the following
  1. does your current directory path (full path) have any spaces or non-ascii characters? if yes, can you try generating code from a directory that does not have spaces or non-ascii characters
  2. does your current directory have write permissions?

8 件のコメント

Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
How to know if it has write permissions or not?
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
"E:\Implement\yolo\tinyyolov4coco.mat" --> This is the directroy that has the network file.
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
I double checked. They have write permissions and full modify permission as well. + There is no space in my directory as shown.
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
@Ram Kokku I provided you my path actually. Is that what you mean?
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
@Ram Kokku I tried what you said. No progress.
Also when I checked :
results = coder.checkGpuInstall(envCfg)
Compatible GPU : PASSED (Warning: Support for GPU devices with Compute Capability 5.3 will be removed in a future MATLAB release. For more information on GPU support, see GPU Support by Release.)
CUDA Environment : PASSED
Runtime : PASSED
cuFFT : PASSED
cuSOLVER : PASSED
cuBLAS : PASSED
cuDNN Environment : PASSED (Warning: Deep learning code generation has been tested with cuDNN v8.7. The provided cuDNN library v8.2 may not be fully compatible.)
Deep Learning (cuDNN) Code Generation: FAILED (GPU code generation failed with the error 'emlc:compilationError'. View report for further information: View report)
It's FAILED here. What should I do?
Ram Kokku
Ram Kokku 2023 年 12 月 17 日
@Ahmed Tamer, we need to look at this in more detail. We will follow up with you tomorrow.
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
@Ram Kokku Thanks for the follow-up. Will wait for you as It is a crticial part in my Bachelor Thesis. Thanks!
Ahmed Tamer
Ahmed Tamer 2023 年 12 月 17 日
Hi, I did some deep debugging and I fixed this error. Thank you very much for your responses

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with GPU Coder についてさらに検索

質問済み:

2023 年 12 月 17 日

コメント済み:

2023 年 12 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by