pytorch-yolo-v3 icon indicating copy to clipboard operation
pytorch-yolo-v3 copied to clipboard

How to train my own dataset

Open InstantWindy opened this issue 6 years ago • 10 comments

Hi! If I want to tain my own data with your model, how to run it? Thanks!

InstantWindy avatar Apr 29 '19 14:04 InstantWindy

https://github.com/ultralytics/yolov3/wiki/Train-Custom-Data

glenn-jocher avatar Apr 29 '19 15:04 glenn-jocher

https://github.com/ultralytics/yolov3/wiki/Train-Custom-Data

Does the train.py file in the repository you link to works for with the darknet.py file in this (ayooshkathuria/pytorch-yolo-v3) repository?

juanmed avatar May 06 '19 11:05 juanmed

https://github.com/ultralytics/yolov3/wiki/Train-Custom-Data

Does the train.py file in the repository you link to works for with the darknet.py file in this (ayooshkathuria/pytorch-yolo-v3) repository?

Hey, did u find it out?

emmbertelen avatar Jul 31 '19 07:07 emmbertelen

The YOLOv3 repository below is MacOS/Windows/Linux compatible, includes multigpu/multiscale, performs rectangular+batchnorm fused inference on images, videos, webcams, and even an iOS app. It tests slightly better than darknet (60.7 COCO2014 mAP with yolov3-spp.weights), and trains FP16/FP32 custom datasets from scratch to darknet performance, all using PyTorch :) https://github.com/ultralytics/yolov3

glenn-jocher avatar Jul 31 '19 12:07 glenn-jocher

@glenn-jocher I'm using a MacOS and have just finished training my dataset. How would I go by detecting my custom object using my webcam and or iphone? I have followed the tutorial you linked above.

FeatheryW avatar Aug 01 '19 04:08 FeatheryW

Run this to use webcam:

git clone https://github.com/ultralytics/yolov3
cd yolov3
python3 detect.py --webcam

glenn-jocher avatar Aug 01 '19 13:08 glenn-jocher

@glenn-jocher Is there anyway to then use a custom trained weights on ios?

NOxDriver avatar Oct 17 '20 15:10 NOxDriver

@NOssendryver of course. That’s the entire point of what we do. See YOLOv5 to get started.

glenn-jocher avatar Oct 17 '20 16:10 glenn-jocher

@glenn-jocher thanks. I've got my trained weights, but I just can not get it to work. What's the best way to get this done? Weights are in Darknet format. I can convert to Modelml, but nothing gets detected in the xcode project when I deploy to my iphone.

NOxDriver avatar Oct 17 '20 16:10 NOxDriver

See YOLOV5 export tutorial https://github.com/ultralytics/yolov5#tutorials

glenn-jocher avatar Oct 17 '20 16:10 glenn-jocher