i am using MATLAB 2020a
Error while running Example of TrainAnSSDObjectDetector
1 view (last 30 days)
Show older comments
Huma Hafeez
on 14 Jun 2020
Answered: Divya Gaddipati
on 16 Jun 2020
hello! please help me out to solve this
when i run the example "https://www.mathworks.com/help/vision/ref/trainssdobjectdetector.html#mw_aadddb45-dcc1-4968-8d1d-d9ec600dc23e", i receive following error:
Invalid transform function defined on datastore.
data = read(ds);
exampleDataFromDatastore = iReadNonEmptyOneRow(ds);
nnet.internal.cnn.GeneralDatastoreDispatcher( ...
dispatcher = nnet.internal.cnn.DataDispatcherFactory.createDataDispatcherMIMO( ...
trainingDispatcher = iCreateTrainingDataDispatcher(ds, mapping, trainedNet,...
[network, info] = vision.internal.cnn.trainNetwork(...
Caused by:
Applying the function '@(varargin)iSelectTrainingSamples(params,varargin{:})' to the 1st row of A generated the following error:
The value of 'bboxB' is invalid. Expected input to be finite.
Accepted Answer
Divya Gaddipati
on 16 Jun 2020
From the error "The value of 'bboxB' is invalid. Expected input to be finite.", it seems like one or more of the groundtruth bounding boxes have NaNs/Inf values. Make sure your groundtruths are valid and non-empty i.e., the values of the bounding boxes are finite, positive, non-fractional, non-NaN and should be within the image boundary with a positive height and width. You should either discard or fix the samples with invalid bounding boxes.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!