Series yolo detection in TensorFlow
Project description
Documentation | Tutorials | Release Notes | 中文
tfyolo is a YOLO (You only look once) library implemented by TensorFlow2
Key Features
- minimal Yolov5 by pure tensorflow2
- yaml file to configure the model
- custom data training
- mosaic data augmentation
- label encoding by iou or wh ratio of anchor
- positive sample augment
- multi-gpu training
- detailed code comments
- full of drawbacks with huge space to improve
Tutorial
prepare the data
$ bash data/scripts/get_voc.sh
$ cd yolo
$ python dataset/prepare_data.py
Clone and install requirements
$ git clone git@github.com:LongxingTan/Yolov5.git
$ cd Yolov5/
$ pip install -r requirements.txt
Train
$ python train.py
Inference
$ python detect.py
$ python test.py
Train on custom data
If you want to train on custom dataset, PLEASE note the input data should like this:
image_dir/001.jpg x_min, y_min, x_max, y_max, class_id x_min2, y_min2, x_max2, y_max2, class_id2
And maybe new anchor need to be created, don't forget to change the nc(number classes) in yolo-yaml.
$ python dataset/create_anchor.py
Performance
| Model | Size | APval | AP50val | AP75val | cfg | weights |
|---|---|---|---|---|---|---|
| YOLOV5s | 672 | 47.7% | 52.6% | 61.4% | cfg | weights |
| YOLOV5m | 672 | 47.7% | 52.6% | 61.4% | cfg | weights |
| YOLOV5l | 672 | 47.7% | 52.6% | 61.4% | cfg | weights |
| YOLOV5x | 672 | 47.7% | 52.6% | 61.4% | cfg | weights |
Citation
If you find tf-yolo project useful in your research, please consider cite:
@misc{tfyolo2021,
title={TFYOLO: yolo series benchmark in tensorflow},
author={Longxing Tan},
howpublished = {\url{https://github.com/longxingtan/tfyolo}},
year={2021}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfyolo-0.0.1.tar.gz.
File metadata
- Download URL: tfyolo-0.0.1.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.6 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c0e4e802c452b44e8a0a5704421025872255900225b38b80c99f207acf7628
|
|
| MD5 |
32d50e16da3d19b51b3c95975a18c73b
|
|
| BLAKE2b-256 |
bb2d3380e8e9bc18880b2ab490cf0aa37ddd443e728643ba5562c3731fb1f06e
|
File details
Details for the file tfyolo-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tfyolo-0.0.1-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.6 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58cd112a5c366c8e6ab952ed9fca2f23a612572e464e96b1311e52bdf11080f9
|
|
| MD5 |
4df6286e677d95f95b8df801d8fb5306
|
|
| BLAKE2b-256 |
d74b7564731e2b6088da38c020a039945a0a16c474b3391f8b07edb27f476cac
|