Skip to main content

Yolo + sahi toolkit

Project description

yolodetection

yolodetection is a lightweight wrapper around Ultralytics YOLO + SAHI sliced inference.

Main goals:

  • Simple interface
  • Handles large images using SAHI slicing
  • Exports clean, JSON-ready detections (with centroids)
  • Optional saving of prediction JSON + visualization masks to disk

🔧 Installation

pip install yolodetection

Usage

from yolodetect import YoloInstance

options = {
    "save_json": True,
    "json_output_path": str(Path.cwd() / "exports"),
    "save_masks": True,
    "mask_output_path": str(Path.cwd() / "outputs"),
}

instance = SahiModelInstance("models/best.pt")
instance.predict("path/to/images", options)

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

yolodetection-1.0.12.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yolodetection-1.0.12-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file yolodetection-1.0.12.tar.gz.

File metadata

  • Download URL: yolodetection-1.0.12.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yolodetection-1.0.12.tar.gz
Algorithm Hash digest
SHA256 5d31bd1d1ac9509af679165eb41ae4ca2d19060c8d574bff0b832e24ccd6aadb
MD5 039adca568acfcae366e6a69084bc71f
BLAKE2b-256 8faf21c83defac282f58aaba1a16cd20ec79925afe050a8c74965d7b7e6f7537

See more details on using hashes here.

File details

Details for the file yolodetection-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: yolodetection-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yolodetection-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 6c25bda5e46aca6bf82cdbab3cce874300c434a7eee076daa6c3bdca8c1c66d1
MD5 194fec31e13206a30f9c631fcf44eb09
BLAKE2b-256 9988911992a2e7fa26ba6f847fe5062285c5d18780f857819149209a84e99261

See more details on using hashes here.

Supported by

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