changing dataset in SORT (simple online real-time tracking) example in Matlab

조회 수: 5 (최근 30일)
Hello. I want to use my dataset as input to the SORT example ( https://www.mathworks.com/help/fusion/ug/implement-simple-online-and-realtime-tracking.html ) in Matlab. I used the yolo4 object detection algorithm and set the input for the SORT algorithm. I attached my input data to the SORT example, which is in objectDetection format as it should be. when I run the SORT algorithm with my dataset, this error happens:
error using ()
changing the data type on input 3 of the system object trackerGNN is not allowed without first calling the release(.) method.
Error in helperRunSort (line 18)
tracks = tracker(highScoreDetections, reader.CurrentTime, iouCost);
I would appreciate it if anyone could help me solve this issue. Regards
whos -file objectDetectionsCell.mat
Name Size Bytes Class Attributes objectDetectionsCell 1x200 873088 cell
  댓글 수: 2
Walter Roberson
Walter Roberson 2023년 7월 30일
load objectDetectionsCell
C1 = objectDetectionsCell{1};
whos C1
Name Size Bytes Class Attributes C1 15x1 4140 objectDetection
It is not clear what the datatype is for your iouCost -- and it is not clear how your objectDetection entries have been trained.
alex
alex 2023년 7월 31일
Thanks for your response. C1 is 15*1 and each entry shows the person detection result of YOLO4, which is in the objectDetection function format. C1 = 15*1 shows in frame 1, 15 persons are detected by YOLO4. I used some of the UCSD PED1 tif image sequence dataset and YOLO4 object detector.

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

채택된 답변

Walter Roberson
Walter Roberson 2023년 7월 31일
이동: Walter Roberson 2023년 7월 31일
I speculate that maybe your .tiff file is uint8 values, so the objectDetection matrices are expecting uint8 inputs, but that your iouCost is double()
The error message is telling you that iouCost in your code is not the same datatype that your detectors were trained against.
  댓글 수: 2
alex
alex 2023년 7월 31일
이동: Walter Roberson 2023년 7월 31일
Yes. You are right. I changed the input data type to double, and the problem is solved. Thank you very much.
BASHIR AHMAD RASHEEDY
BASHIR AHMAD RASHEEDY 2024년 6월 2일
이동: DGM 2024년 6월 2일
Alex;
I am also facing the same problem, I am using YOLO for a video sequence and gets the same problem, would you please share and how to change the input data to double.
thanks in advance

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by