yolov7 icon indicating copy to clipboard operation
yolov7 copied to clipboard

How can I change the pytorch weights (.pt) to darknet weights (.weights)?

Open DongNaeSwellfish opened this issue 1 year ago • 2 comments

I want to use darknet for yolov7 model that is trained with my custom data on this github code. However, I cannot find any way to convert the pytorch weights to darknet weight format. Can anyone please tell me whether it is possible or not?

DongNaeSwellfish avatar Jan 11 '24 11:01 DongNaeSwellfish

I want to use darknet for yolov7 model that is trained with my custom data on this github code. However, I cannot find any way to convert the pytorch weights to darknet weight format. Can anyone please tell me whether it is possible or not?

Darknet's version of yolov7 will not give you better results as compared to their yolov4. I suggest you use darknet's yolov4 if you want to stick to darknet.

dsbyprateekg avatar Feb 04 '24 05:02 dsbyprateekg

I'm also interested in finding a way to convert the weight file, containing the model trained using this repo into darknet .weights.

@DongNaeSwellfish, were you able to find a solution?

ArthurTlprt avatar Jun 21 '24 09:06 ArthurTlprt