ruiminshen / yolo-tf

TensorFlow implementation of the YOLO (You Only Look Once)
GNU Lesser General Public License v3.0
198 stars 72 forks source link
deep-learning object-detection python tensorflow yolo yolo2

This project is deprecated. Please see yolo2-pytorch

TensorFlow implementation of the YOLO (You Only Look Once) and YOLOv2

Dependencies

Configuration

Configurations are mainly defined in the "config.ini" file. Such as the detection model (config/model), base directory (config/basedir, which identifies the cache files (.tfrecord), the model data files (.ckpt), and summary data for TensorBoard), and the inference function ([model]/inference). Notability the configurations can be extended using the "-c" command-line argument.

Basic Usage

Examples

Training a 20 classes Darknet YOLOv2 model from a pretrained 80 classes model

python3 cache.py -c config.ini config/yolo2/darknet-20.ini -v
python3 parse_darknet_yolo2.py ~/Downloads/yolo.weights -c config.ini config/yolo2/darknet-80.ini -d
python3 train.py -c config.ini config/yolo2/darknet-20.ini -t ~/Documents/Database/yolo-tf/yolo2/darknet/80/model.ckpt -e yolo2_darknet/conv -d
tensorboard --logdir ~/Documents/Database/yolo-tf/yolo2/darknet/20
python3 train.py -c config.ini config/yolo2/darknet-20.ini -b 16
python3 detect.py $IMAGE_FILE -c config.ini config/yolo2/darknet-20.ini
python3 detect_camera.py -c config.ini config/yolo2/darknet-20.ini

Checklist

License

This project is released as the open source software with the GNU Lesser General Public License version 3 (LGPL v3).

Acknowledgements

This project is mainly inspired by the following projects: