roboflow / zero-shot-object-tracking

Object tracking implemented with the Roboflow Inference API, DeepSort, and OpenAI CLIP.
https://blog.roboflow.com/zero-shot-object-tracking/
GNU General Public License v3.0
357 stars 62 forks source link

Doesn't work with models trained with latest version of YoloV5 #14

Open rajeshpt opened 2 years ago

rajeshpt commented 2 years ago

Models created/trained with latest version of YoloV5 don't load with this repo code. The YoloV5 code you have needs to be updated.

Jacobsolawetz commented 2 years ago

@rajeshpt that is right - we will provide an update for yolov5v6.0, and in the meantime provide a hash of the version we have pinned here cc @maxhs2014

rajeshpt commented 2 years ago

@Jacobsolawetz thanks for your quick response. Just as a suggestion, would it make sense not to keep a copy of the yolo source code and instead just use the torch.hub.load to load the model. That way this repo would work irrespective of yolo version changes.

Jacobsolawetz commented 2 years ago

@rajeshpt interesting... can you use torch.hub.load with models that you have trained on your custom dataset?

rajeshpt commented 2 years ago

@rajeshpt interesting... can you use torch.hub.load with models that you have trained on your custom dataset?

yes, you can. I am currently doing that and that is the recommended approach to avoid tight dependency with the yolo source and probably also from licensing perspective if one is developing a commercial product.

jonbr407 commented 2 years ago

@rajeshpt I'm trying to implement your fix, but I'm struggling to get it to run. Would you mind please uploading an example?

rajeshpt commented 2 years ago

Loading your custom model - model = torch.hub.load("ultralytics/yolov5", "custom", MODEL_PATH)

for Inference - results = model(frame)

You can look at this for more details - https://github.com/ultralytics/yolov5/issues/36

JNaranjo-Alcazar commented 2 years ago

Is v6.0 still not supported?

Thanks in advance! 😄

Jacobsolawetz commented 2 years ago

@JNaranjo-Alcazar it is still not supported, @maxhs2014 and I will take a look when we get a moment, and PRs always welcome :D

MZeinab commented 2 years ago

Jacobsolawetz is any repo for zero-shot-object tracking compatible with YOLOv5 v6.0 (the latest version)???????

rsorbello commented 1 year ago

There is now a YOLOv5 v7.0, I'm guessing it is still not up to date to work with this?