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.1b0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: YALTAi-0.0.1b0.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.1b0.tar.gz
Algorithm Hash digest
SHA256 dbbcc065958533d3281fc2ae9545f6c79317a8cb18523077431e2fad9d16e94d
MD5 24b8fdabfa3d98c10b35188009f23e3a
BLAKE2b-256 69f385287a4ad00160c2b8943c794e809bfc3b980d80e23a0d421a6d0b325bab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: YALTAi-0.0.1b0-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.1b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 506748c2defa2e1c3601024298173d71f0afb08be41d3dc3b47dcf10c89ddbd8
MD5 3aae9ab3d2ba66df873355af03d8c0c6
BLAKE2b-256 407577b8cd2be4065d2903655b95fa17cced672d60f690ed4dde2a516cbd8a8b

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