필터 지우기
필터 지우기

What is the solution to this error?

조회 수: 1 (최근 30일)
Ruwaida Lawgali
Ruwaida Lawgali 2022년 3월 8일
댓글: Benjamin Thompson 2022년 3월 9일
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.
(+)
(-)
What should I do, which lines need change to work correctly.
Thank you in advanced.

채택된 답변

Benjamin Thompson
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
Ruwaida Lawgali
Ruwaida Lawgali 2022년 3월 8일
Thank you
Benjamin Thompson
Benjamin Thompson 2022년 3월 9일
You are welcome. If this answer is good, please mark it as accepted.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by