This implementation of YOLOv3 object detector in TensorFlow 2.0 (Keras). Referenced great resources below. Traning is on going. Tested on Python 3.6, TensorFlow 2.0 alpha on Ubuntu 16.04.
- Darknet YOLO
- models
- weight converter
- YangYun
- weight onverter
- How to implement a YOLO(v3) Object detector from scratch in PyTorch
- weight converter
- Paweł Kapica
- models
- YoloV3 Implemented in TensorFlow 2.0
- models for TensorFlow 2.0
- Densely Connected Convolutional Networks
- model class for TensorFlow 2.0
- Darknet53 architecture and Test
- YOLOv3 architecture
- Basic working demo
- Weights converter (util for exporting loaded COCO weights as TF checkpoint)
- Training pipeline
- More backends
To run demo type this in the command line:
- Download COCO class names file:
wget https://raw.githubusercontent.com/pjreddie/darknet/master/data/coco.names
- Download and convert model weights:
- Download binary file with desired weights:
- Full weights:
wget https://pjreddie.com/media/files/yolov3.weights
- Full weights:
- Run
python ./convert_weights.py
- Download binary file with desired weights:
- Run
python ./demo.py --input_img <path-to-image> --output_img <name-of-output-image>
####Optional Flags
- convert_weights.py:
--class_names
- Path to the class names file
--weights_file
- Path to the desired weights file
--data_format
channels_first
orchannels_last
--tf2_weights
- Output weights file
- demo.py
--class_names
- Path to the class names file
--input_img
- Path to the input image file
--output_img
- Path to the output image file
--data_format
channels_first
orchannels_last
--weights
- TensorFlow 2.0 Weights file.
--score_threshold
- Desired Score Threshold
--iou_threshold
- Desired IOU Threshold