What is the solution to this error?
1 次查看(过去 30 天)
显示 更早的评论
What this error main?
>> SSDBExperiment_BuildCropDataset
imageLabelingSession0 positives were selected
Generating the set of negative crop locations at 6 per positive...
Output argument "selected_nonobjs_bboxs" (and maybe others) not assigned during call to
"SSDBExperiment_BuildCropDataset>GenerateRandNegativeBBoxSet".
Error in SSDBExperiment_BuildCropDataset (line 56)
[nBBoxs,nIdxs] = GenerateRandNegativeBBoxSet(pBBoxs, ...
>>
..........................
I have file with name (GenerateRandNegativeBBoxSet)
My dataset contains images, I made image labeler for positive and negative images, then save it as session.
(+)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/919074/image.jpeg)
(-)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/919079/image.jpeg)
What should I do, which lines need change to work correctly.
Thank you in advanced.
0 个评论
采纳的回答
Benjamin Thompson
2022-3-8
If the selected_bboxs argument is empty, then GenerateRandNegativeBBoxSet will not enter the loop where the two output variables are created. Then the function returns no outputs to the caller. To be sure that the two outputs are always defined, initialize them to empty values at the beginning of the function:
selected_nonobjs_bboxs = [];
idxout = [];
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!