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
Release history Release notifications | RSS feed
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.9.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yolodetection-1.0.9.tar.gz.
File metadata
- Download URL: yolodetection-1.0.9.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f533956e5a11b05fef685466f5ced3805423d97b6581be40784ba00691c0b1f3
|
|
| MD5 |
73067827ae4b2466ae0b24b9a6c2885b
|
|
| BLAKE2b-256 |
774e974c3bcf0f4c7add6daf28983a2df82caeb7a18f868ccaadaf95c8c8eff5
|
File details
Details for the file yolodetection-1.0.9-py3-none-any.whl.
File metadata
- Download URL: yolodetection-1.0.9-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
615f8e4b80181be727e92a7765677e8cfb5ad6421fb4e84dd6c52892b3395105
|
|
| MD5 |
f1eddb90346aba15f49da64edb66409a
|
|
| BLAKE2b-256 |
a83e95bcbb97dde09fb91fb1bfbfe33bed14241f29f8f02ee9b1a8439248e6e1
|