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}
}
Metadata
Release files for tfyolo 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tfyolo-0.0.1.tar.gz | 25.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tfyolo-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.7 kB
Release files / tfyolo-0.0.1.tar.gz
| Download URL | tfyolo-0.0.1.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67c0e4e802c452b44e8a0a5704421025872255900225b38b80c99f207acf7628
|
|
BLAKE2b-256 checksum How to use checksums |
bb2d3380e8e9bc18880b2ab490cf0aa37ddd443e728643ba5562c3731fb1f06e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.8.6 Darwin/18.7.0
|
Release files / tfyolo-0.0.1-py3-none-any.whl
| Download URL | tfyolo-0.0.1-py3-none-any.whl |
|---|---|
| Size | 31.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58cd112a5c366c8e6ab952ed9fca2f23a612572e464e96b1311e52bdf11080f9
|
|
BLAKE2b-256 checksum How to use checksums |
d74b7564731e2b6088da38c020a039945a0a16c474b3391f8b07edb27f476cac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.8.6 Darwin/18.7.0
|
Security for tfyolo 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.