How do you solve this? I am making a Simulink Model using a YOLOv2 Detector. I inserted a MATLAB function block and am trying to run the model
function targets = roboSubPredict(total_Targets_Possible, img)
targets = 0;
bboxMat = zeros(total_Targets_Possible,4);
persistent yolo2Object;
if isempty(yolo2Object)
yolo2Object = coder.loadDeepLearningNetwork('resnet101_10_preprocessed.mat');
end
img = imresize(img,[224 224]);
[bboxes,scores,labels] = yolo2Object.detect(img,'Threshold',0.6);
Building the model results in error because it is attempting to use yolo2Object.detect(img,'Threshold',0.6); which uses cudnnApi I think. I already have the prerequisite software downloaded and used them to generate code before. How do I get my compiler 'Microsoft Visual Studio 2019' to use the cudnnApi?
0 Comments
Sign in to comment.