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

Custom yolov7 pytorch #28

Open
alemelis opened this issue Oct 17, 2022 · 2 comments
Open

Custom yolov7 pytorch #28

alemelis opened this issue Oct 17, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@alemelis
Copy link

Hello!
Is there any way to use custom yolov7-tiny models trained with the official PyTorch repo?
I imagine I need to translate from .pt to .weights format, any hint on how to do that?

@alemelis alemelis added the enhancement New feature or request label Oct 17, 2022
@alemelis alemelis changed the title Customer yolov7 pytorch Custom yolov7 pytorch Oct 17, 2022
@LdDl LdDl added question Further information is requested and removed enhancement New feature or request labels Oct 19, 2022
@LdDl
Copy link
Owner

LdDl commented Oct 19, 2022

Hi!
Can you provide more details on it?
What is official Pytorch repository for YOLOv7-tiny? I'm aware of AlexeyAB's only and it is C/C++ all about

UPD: *.pt -> *.weights should easy though anyways

@alemelis
Copy link
Author

@LdDl thanks for the reply!

yolov7 official repository is this one
https://github.com/WongKinYiu/yolov7
as also AlexeyAB mention in his fork
AlexeyAB/darknet#8595

at the moment there are two options for training a custom v7 model:

  1. train in pytorch with https://github.com/WongKinYiu/yolov7 by using imagenet pre-trained weights from there
  2. train in C/C++ with darknet https://github.com/AlexeyAB/darknet by using imagenet pre-trained weights provided by Alexey

The benefit of 1 is that you can use all the new augmentation strategies proposed in the paper https://arxiv.org/abs/2207.02696 . This is not true for 2 as these have not been implemented fully yet. Hence in 2 I'd have a sub-par model.

The problem with 1 is that I get a .pt file and it is not really clear to me how I should go and convert the file.
See here

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

No branches or pull requests

2 participants