Effacer les filtres
Effacer les filtres

Error generating a makefile Code Generation to Jetson

2 vues (au cours des 30 derniers jours)
Ahmed Tamer
Ahmed Tamer le 17 Déc 2023
Commenté : Ahmed Tamer le 17 Déc 2023
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?

Réponses (1)

Ram Kokku
Ram Kokku le 17 Déc 2023
Modifié(e) : Ram Kokku le 17 Déc 2023
@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 commentaires
Ahmed Tamer
Ahmed Tamer le 17 Déc 2023
@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 le 17 Déc 2023
Hi, I did some deep debugging and I fixed this error. Thank you very much for your responses

Connectez-vous pour commenter.

Catégories

En savoir plus sur Deep Learning with GPU Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by