ultralytics / ultralytics

Ultralytics YOLO11 🚀
https://docs.ultralytics.com
GNU Affero General Public License v3.0
31.63k stars 6.08k forks source link

Is it possible use on Darknet ? #540

Closed hongu0603 closed 1 year ago

hongu0603 commented 1 year ago

Search before asking

Question

I want run yolov8 on Darknet, is it possible. If possible, how to change .pt to .weight and yaml to cfg, I have no idea now. thanks a lot

Additional

No response

AyushExel commented 1 year ago

No it's not. Could you describe your use case with darknet?

hongu0603 commented 1 year ago

The task (breast cancer detect ) before i was use yolov4 by Darknet, and now i want to use yolov8 replace yolov4

knoppmyth commented 1 year ago

Assuming you still have the dataset, retrain with YOLOv8. If memory serves (from when I experimented w/ YOLOv4), all you should need as a YAML file pointing to the location of your dataset and start the training. `path: /usr/src/datasets/Hand/ # dataset root dir train:

Classes

nc: 1 # number of classes names: ['Hand'] # class names`

hongu0603 commented 1 year ago

@knoppmyth Sorry i can't really understand, in Darknet we need .cfg and .weight but if I retrain with YOLOv8 i just get .pt, i dosen't need to do any transform ?

knoppmyth commented 1 year ago

@hongu0603 You cannot take a YOLOv4 cfg and weights and run them with YOLOv8. If you want to use YOLOv8, you need to train a new model with it.

AyushExel commented 1 year ago

You can train any model with ultralytics repo. You can even train yolov4,v3 or even non-yolo model. You just have to prepare the cfg file properly. We'll add support for it soon.

hongu0603 commented 1 year ago

@knoppmyth yes, i konw i need to train a new model. @AyushExel Thanks for reply, i know i nees to prepare the cfg file, i just no ida how to transform yaml file to cfg file

github-actions[bot] commented 1 year ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐