WongKinYiu / PyTorch_YOLOv4

PyTorch implementation of YOLOv4
1.86k stars 585 forks source link

yolov4-pacsp.pt convert yolov4-pacsp.weights #268

Open Hiwyl opened 3 years ago

Hiwyl commented 3 years ago

Hi,Excuse me. How do I convert this repo trained model endwith "pt" into Darknet form "weights"

WongKinYiu commented 3 years ago
from models.models import *
convert(cfg='models/your_model.cfg', weights='your_model.pt', saveto='your_model.weights')
Hiwyl commented 3 years ago

TKS,🐂