simple-HRNet icon indicating copy to clipboard operation
simple-HRNet copied to clipboard

Anyone tried yolo v4 or v5?

Open esgnn opened this issue 5 years ago • 3 comments

Hi, I tried to replace yolov3.weights and yolov3.cfg with new yolov4.weights and yolov4.cfg but it took forever to predict with yolo detection. Actually I am on colab and it terminated the runtime because of memory, so no prediction occurred.

Has anyone else tried it?

esgnn avatar Apr 26 '20 10:04 esgnn

Hi! I guess you're talking about this version of YOLO and the weights they have released there: YOLOv4 (v3/v2) - Windows and Linux version of Darknet ... - https://github.com/AlexeyAB/darknet

I've had a quick look at it and the script seems to be stuck in this loop YOLOv3/utils/utils.py#L251-L260 when using the new checkpoint with the old detector.

It could be due to wrong thresholds or to a different ordering of the output, but I still haven't found the time to investigate it.

stefanopini avatar Apr 29 '20 20:04 stefanopini

@stefanopini do you tires yolov5?

azuryl avatar Sep 26 '20 13:09 azuryl

Do you mean https://github.com/ultralytics/yolov5 ? No, I didn't, but I think it'll require major changes because it is a completely different repository w.r.t. the current YOLOv3. May you have a look at that?

stefanopini avatar Sep 26 '20 17:09 stefanopini

#99 yolov5 for single image/video inference. Maybe it should be added in a different branch rather than the master branch since I didn't take a look into the _predict_batch method. Also I have added trt for HRNet

gpastal24 avatar Oct 29 '22 19:10 gpastal24

Thanks @gpastal24 ! I'll take a look at your PR in the following days.

stefanopini avatar Nov 06 '22 19:11 stefanopini

Hi @stefanopini , thank you. I have made some revisions based on your comments on HigherHRNet PR.

gpastal24 avatar Nov 07 '22 20:11 gpastal24

Support for YOLOv5 added to the master branch! (See #100 )

stefanopini avatar Dec 29 '22 18:12 stefanopini