goturn-pytorch icon indicating copy to clipboard operation
goturn-pytorch copied to clipboard

Already trained model.

Open berkantay opened this issue 5 years ago • 5 comments

Hello @nrupatunga i am planning to use goturn tracker with yolov5. I have my trained weights and detection working well. Now I want to integrate goturn tracker to my code. I have my_custom_model.pt. Can I use this for tracking?

berkantay avatar Nov 16 '20 11:11 berkantay

yes, so if I understand correctly, your object detection model gives an initial bounding box for the tracking to continue,

so you can refer to the following test script(might need some modifications) and can set your initial bounding box. https://github.com/nrupatunga/goturn-pytorch/blob/bb3b3b418ac361aa5782b0a7569cc2191b1c30fc/src/scripts/demo_folder.py#L213

How to test: This will guide as to how to test for new video sample https://github.com/nrupatunga/goturn-pytorch#testing

nrupatunga avatar Nov 16 '20 11:11 nrupatunga

Yes exactly, my network gives the bounding box coordinates. I am aiming to use those coordinates to initiate goturn tracker.

berkantay avatar Nov 16 '20 11:11 berkantay

@nrupatunga I have one more question. Yolov5 framework that I use for detection uses newer version of torch, pillow etc. would it matter if I mind to use those versions for your code?

berkantay avatar Nov 16 '20 12:11 berkantay

Since I'm using Pytorch-Lightning, there are few changes to it in the new version. Let me know if you face any issues, would look into it.

nrupatunga avatar Nov 17 '20 06:11 nrupatunga

I got segmentation fault when I press """s""" for tracking.

berkantay avatar Nov 17 '20 07:11 berkantay