Skip to main content

You Actually Look Twice At it, YOLOv5-Kraken adapter for region detection

Project description

YALTAi

You Actually Look Twice At it

This provides an adapter for Kraken to use YOLOv5 Object Detection routine.

This tool can be used for both segmenting and conversion of models.

Routine

pip install YALTAi
# Keeps .1 data in the validation set and convert all alto into alto
#  Keeps the segmonto information up to the regions
python -m yaltai.yaltai convert PATH/TO/ALTOorPAGE/*.xml my-dataset --shuffle .1 --segmonto region
# Train your YOLOv5 data (YOLOv5 is installed with YALTAi)
yolov5 train --data "$PWD/my-dataset/config.yml" --batch-size 4 --img 640 --weights yolov5x.pt --epochs 50
# 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 !
python -m yaltai.kraken_yaltai --device cuda:0 -I "*.jpg" --suffix ".xml" segment --yolo runs/train/exp5/weights/best.pt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

YALTAi-0.0.1a0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

YALTAi-0.0.1a0-py2.py3-none-any.whl (23.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file YALTAi-0.0.1a0.tar.gz.

File metadata

  • Download URL: YALTAi-0.0.1a0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for YALTAi-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 dc93e63268ccad19f341762bc6fd427ee1750474b9c86f8831989ca2b4c57f5a
MD5 af6480583c85b06f65ad670e6c65e2e5
BLAKE2b-256 c43da7f2d3f487477c3da780d750b227a93c3c7a7422946cdfee05fd457f1654

See more details on using hashes here.

File details

Details for the file YALTAi-0.0.1a0-py2.py3-none-any.whl.

File metadata

  • Download URL: YALTAi-0.0.1a0-py2.py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for YALTAi-0.0.1a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 349fb7aeb15f6ae574b7a046b5d688a3f221695585f64c44a64264db3b12bd08
MD5 f56916e7e7b6f1be41f58a8d5a813f42
BLAKE2b-256 76a92f750514b3ffdf2261713fcec1aa93e3b3b806b4f453c9fb3cea19774e90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page