Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOLO v7 Support #293

Open
mkzein opened this issue Jul 8, 2022 · 7 comments
Open

YOLO v7 Support #293

mkzein opened this issue Jul 8, 2022 · 7 comments

Comments

@mkzein
Copy link

mkzein commented Jul 8, 2022

Hello @mive93

Any plans to support YOLOv7 🥇 ?

@seba-eng
Copy link

I'm going to add Yolov5 and YOLOX to the wish list. Yes, Yolov4 is technically the last official Yolo version, but those other networks are also used in practice.

@mkzein
Copy link
Author

mkzein commented Nov 7, 2022

Hello
Any updates on support for YOLOv7?

@perseusdg
Copy link
Contributor

I tested yolov7 with tkDNN a couple of weeks ago(i lost track of the code,if i get the time , I will rewrite the code and create a pull request over a weekend), it was pretty straightforward to adapt tkDNN for yolov7, the only new layer that you need is swish ,for the tensorrt part you can use a combination of IElementWiseLayer functions and for the cudnn part you can copy the swish kernel from alexyab's darknet repo. To export darknet weights to tkdnn bin files , copy over the lines of code that deal with converting weight files in the hipert darknet repo mentioned somewhere in the docs to latest commit on alexyab's darknet repo and to run it , use the command mentioned in the hipert repo.

Writing a test_yolov7 function should be more or less along the lines of test_yolov4 , the demo should run out of the box without any issues with yolov7 if you added the swish layer as mentioned above

@perseusdg
Copy link
Contributor

https://github.com/perseusdg/tkDNN/tree/swish-dev .. this is an untested version of swish for tkdnn , i also enabled it for the darknet parse so it should be relatively easy to use it with yolov7

@AGpix
Copy link

AGpix commented Oct 30, 2023

https://github.com/perseusdg/tkDNN/tree/swish-dev .. this is an untested version of swish for tkdnn , i also enabled it for the darknet parse so it should be relatively easy to use it with yolov7

Thanks for the code...which layers did you use for yolov7. And which would you recommend for yolov7-tiny

@Egorundel
Copy link

@perseusdg you are tested on yolov7 with this instruction?

https://github.com/perseusdg/tkDNN/blob/swish-dev/docs/exporting_weights.md

@Egorundel
Copy link

Egorundel commented May 13, 2024

@ceccocats @seba-eng @perseusdg @mkzein @AGpix How can this be applied to YOLOv7-8 for a PyTorch implementation? They don't have the files model.cfg and model.weights, but there is only model.yaml and model.pt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants