YOLO V3 object detection

1 Ansicht (letzte 30 Tage)
aljawharah alkhalifah
aljawharah alkhalifah am 6 Apr. 2021
Beantwortet: T.Nikhil kumar am 9 Jul. 2022
hello,,
i have a problem when i try to run yolov3 code i get error like
Error using matlab.io.datastore.internal.buildTransformedDatastore (line 56)
Expected a string scalar or character vector for the parameter name.
where the code in line 56 is
error(message("MATLAB:InputParser:ParamMustBeChar"));
the second error is
Error in matlab.io.Datastore/transform (line 367)
dsnew = matlab.io.datastore.internal.buildTransformedDatastore(varargin{:});
Error in Yolov3 (line 61)
preprocessedTrainingData = transform(augmentedTrainingData, @(data)preprocess(yolov3Detector),
data );
i have attached my code so please if you have any recomandtion let me know

Antworten (1)

T.Nikhil kumar
T.Nikhil kumar am 9 Jul. 2022
Hey!
For the second error that you’re facing, I have noticed that you have typed a ‘)’ -- a closing bracket at the wrong position.
Your code at line 61:
preprocessedTrainingData = transform(augmentedTrainingData, @(data)preprocess(yolov3Detector), data);
Corrected line of code:
preprocessedTrainingData = transform(augmentedTrainingData, @(data)preprocess(yolov3Detector, data));
Regarding your first error, I have tried reproducing it by running your code on my system, but I did not face the same error. Also ,I have checked the code at the given line 56 and it is correct according to me. So, you should not be facing the first error
Hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by