py-motmetrics icon indicating copy to clipboard operation
py-motmetrics copied to clipboard

How to get MOT metrics on custom test set?

Open MKiremitci opened this issue 4 years ago • 15 comments

Hi everyone and @cheind,

Thank you for this great jobs. I am newbie and I trained an object detector to detect people from top-view. Now, I want to deal with Multiple Object Tracking, but I don't know how can I get the MOT results. I think lots of people are using the MOT Challange's datasets to evaluate their Multiple Object tracking methods. However, when I look to MOT Challanges, there is no top-view people datasets to evaluate my method. Also, I have already gather top-view human videos to use with tracking.

Therefore, I want to know how should I prepare the test set? How should I annotate? Should test set contain images or videos?

If you answer these questions with basic language to me, I will be too happy. Thanks for your help.

MKiremitci avatar Dec 13 '20 09:12 MKiremitci

@MKiremitci Hi! I am also working on a similar problem. I have a custom made dataset of boats for which I am trying to calculate MOT metrics using two different tracking algorithm.

I have annotated the dataset myself, as I understand for custom dataset you need to manually create a ground truth file as per MOT16 or equivalent format.

I am generating a text file of all the tracks in MOT16 format for each tracker.

Once I have both ground truth and tracker files, I use them to generate the metric. I hope this is helpful to you

khalidw avatar Jan 31 '21 12:01 khalidw

Hey, @MKiremitci you might want to look at the documentation of

https://github.com/cheind/py-motmetrics/blob/develop/motmetrics/apps/eval_motchallenge.py

which gives you an idea of how to structure files so that you can use the script for evaluation.

cheind avatar Jan 31 '21 12:01 cheind

@khalidw and @cheind Thanks for your answers. :)

MKiremitci avatar Jan 31 '21 20:01 MKiremitci

@MKiremitci Hi! I am also working on a similar problem. I have a custom made dataset of boats for which I am trying to calculate MOT metrics using two different tracking algorithm.

I have annotated the dataset myself, as I understand for custom dataset you need to manually create a ground truth file as per MOT16 or equivalent format.

I am generating a text file of all the tracks in MOT16 format for each tracker.

Once I have both ground truth and tracker files, I use them to generate the metric. I hope this is helpful to you

@khalidw Hello! I would like to know how to measure with MOT metric on custom dataset! If you have finished the project, could you please let me know how to measure it?

ImSuMyatNoe avatar Mar 14 '22 08:03 ImSuMyatNoe

@ImSuMyatNoe of course. I can share sample code if you can connect on my email address.

khalidw avatar Mar 19 '22 17:03 khalidw

Hello Khalid!

Greetings to you.

I am Su Myat Noe who commented on your github repo related with "[cheind/py-motmetrics] How to get MOT metrics on a custom test set? (#131)". Sorry for taking a long time to reply to your email.

If you have time, could you please share about the " motometrics library" to my email . @.***

Thank you very much for your time and consideration.

Have a nice day!

Best regards, Su Myat Noe

On Sun, Mar 20, 2022 at 2:16 AM Khalid Waleed @.***> wrote:

@ImSuMyatNoe https://github.com/ImSuMyatNoe of course. I have used motmetrics library for that. I can share sample code if you can connect on my email address.

— Reply to this email directly, view it on GitHub https://github.com/cheind/py-motmetrics/issues/131#issuecomment-1073047377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWYCEAPFHSVITF2LAPC2ULVAYDXLANCNFSM4UZLI5CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

ImSuMyatNoe avatar Apr 08 '22 01:04 ImSuMyatNoe

@ImSuMyatNoe Please see your gmail inbox. I have forwarded you the ipynb notebook. If you have any queries do let me know over email

khalidw avatar May 22 '22 06:05 khalidw

@khalidw could you please share the notebook to me as well. mail id:[email protected]

myuvarajmp avatar Aug 18 '22 06:08 myuvarajmp

@khalidw if that notebook is of potential interest to many people, would you mind making it publicly available? I'd be happy to put a link to it online

cheind avatar Aug 18 '22 06:08 cheind

@cheind Yes I would. Will share in a short while

khalidw avatar Aug 18 '22 06:08 khalidw

@khalidw, nice, maybe add PR of readme.md as well? (make sure to base it on develop)

cheind avatar Aug 20 '22 08:08 cheind

@khalidw Please share the notebook asap. sorry for the inconvenience.

myuvarajmp avatar Aug 24 '22 04:08 myuvarajmp

@myuvarajmp, I've seen @khalidw has already forked the project and is probably already working on a solution. Please be patient.

cheind avatar Aug 24 '22 05:08 cheind

@cheind Hi. I have committed a section titled "For custom dataset" on the readme.md. This section has the code and guide on how to use pymotmetrics for custom dataset. Please review and let me know if any changes are required

khalidw avatar Aug 24 '22 11:08 khalidw

@myuvarajmp , @everyone would you mind following @khalidw docs on how to use it on custom datasets and check if you run into any problems? Please see #167 for the PR and report there if possible. thanks

cheind avatar Aug 24 '22 15:08 cheind