ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.12k stars 16.19k forks source link

how can i convert torch to darknet? #924

Closed Hwijune closed 3 years ago

Hwijune commented 4 years ago

❔Question

how can i convert torch to darknet?

Additional context

hi @glenn-jocher

The last yolov3 repository used torch to convert.

   $ git clone https://github.com/ultralytics/yolov3 && cd yolov3

   # convert cfg/pytorch model to darknet weights 
   $ python3  -c "from models import *; convert('cfg/yolov3-spp.cfg', 'weights/yolov3-spp.pt')"
   Success: converted 'weights/yolov3-spp.pt' to 'weights/yolov3-spp.weights'

how can i convert this yolov5??

It was converted to Torch -> Darknet -> caffe -> edge.

i'm always appreciate of your model

github-actions[bot] commented 4 years ago

Hello @Hwijune, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

For more information please visit https://www.ultralytics.com.

glenn-jocher commented 4 years ago

@Hwijune we've moved on from darknet in yolov5 to allow us greater freedom in architecture definition, so models here are not darknet compatible unfortunately. For export options please see see https://docs.ultralytics.com/yolov5/tutorials/model_export

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.