YALTAi
You Actually Look Twice At it
This provides an adapter for Kraken to use YOLOv8 (1.0.0 update; use previous version to reuse YOLOv5 models) Object Detection routine.
This tool can be used for both segmenting and conversion of models.
Routine
Instal
pip install YALTAi
Training
Convert (and split optionally) your data
# Keeps .1 data in the validation set and convert all alto into YOLOv5 format
# Keeps the segmonto information up to the regions
yaltai convert alto-to-yolo PATH/TO/ALTOorPAGE/*.xml my-dataset --shuffle .1 --segmonto region
And then train YOLO
yolo task=detect mode=train model=yolov8n.pt data=my-dataset/config.yml epochs=100 plots=True device=0 batch=8 imgsz=960
Predicting
YALTAi has the same CLI interface as Kraken, so:
- You can use base BLLA model for line or provide yours with
-i model.mlmodel - Use a GPU (
--device cuda:0) or a CPU (--device cpu) - Apply on batch (
*.jpg)
# Retrieve the best.pt after the training
# It should be in runs/train/exp[NUMBER]/weights/best.pt
# And then annotate your new data with the same CLI API as Kraken !
yaltai kraken --device cuda:0 -I "*.jpg" --suffix ".xml" segment --yolo runs/train/exp5/weights/best.pt
Metrics
The metrics produced from various libraries never gives the same mAP or Precision. I tried
object-detection-metrics==0.4mapCalcmean-average-precisionwhich ended up being the chosen one (cleanest in terms of how I can access info)
and of course I compared with YOLOv5 raw results. Nothing worked the same. And the library YOLOv5 derives its metrics from is uninstallable through pip.
Metadata
Release files for YALTAi 2.0.5
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 | Actions |
|---|---|---|---|---|
| YALTAi-2.0.5.tar.gz | 27.1 kB | Without provenance | Details for YALTAi-2.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| YALTAi-2.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for YALTAi-2.0.5-py2.py3-none-any.whl |
Total release size: 67.2 kB
Release files / YALTAi-2.0.5.tar.gz
| Download URL | YALTAi-2.0.5.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90e01dad9909403b4168654af6b96151e6732c92968b2b5fbf561195eb1bb2d8
|
|
BLAKE2b-256 checksum How to use checksums |
0754736d1b788f2fe5d9fdc8b1d9fa533fd07f98f7d42dab609d5fc6d91b8aa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / YALTAi-2.0.5-py2.py3-none-any.whl
| Download URL | YALTAi-2.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 40.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9a2f9ff2606c84d790e1660551baf2ccda843ac63e6e8836fb7ed73e81d1f9c1
|
|
BLAKE2b-256 checksum How to use checksums |
34e2e999fe71490352baf41a11e9a61cac48e2cab6d2f8f962917e8b961b3bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for YALTAi 2.0.5
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.