Sahi

Latest version: v0.11.22

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 16

0.11.22

What's Changed
* Improve suppot for latest mmdet (v3.3.0) by fcakyon in https://github.com/obss/sahi/pull/1129
* Improve support for latest yolov5-pip and ultralytics versions by fcakyon in https://github.com/obss/sahi/pull/1130
* support latest huggingface/transformers models by fcakyon in https://github.com/obss/sahi/pull/1131
* refctor coco to yolo conversion, update docs by fcakyon in https://github.com/obss/sahi/pull/1132
* bump version by fcakyon in https://github.com/obss/sahi/pull/1134


**Full Changelog**: https://github.com/obss/sahi/compare/0.11.21...0.11.22

Core Documentation Files

[Prediction Utilities](predict.md)
- Detailed guide for performing object detection inference
- Standard and sliced inference examples
- Batch prediction usage
- Class exclusion during inference
- Visualization parameters and export formats
- Interactive examples with various model integrations (YOLOv8, MMDetection, etc.)

[Slicing Utilities](slicing.md)
- Guide for slicing large images and datasets
- Image slicing examples
- COCO dataset slicing examples
- Interactive demo notebook reference

[COCO Utilities](coco.md)
- Comprehensive guide for working with COCO format datasets
- Dataset creation and manipulation
- Slicing COCO datasets
- Dataset splitting (train/val)
- Category filtering and updates
- Area-based filtering
- Dataset merging
- Format conversion (COCO ↔ YOLO)
- Dataset sampling utilities
- Statistics calculation
- Result validation

[CLI Commands](cli.md)
- Complete reference for SAHI command-line interface
- Prediction commands
- FiftyOne integration
- COCO dataset operations
- Environment information
- Version checking
- Custom script usage

[FiftyOne Integration](fiftyone.md)
- Guide for visualizing and analyzing predictions with FiftyOne
- Dataset visualization
- Result exploration
- Interactive analysis

Interactive Examples

All documentation files are complemented by interactive Jupyter notebooks in the [demo directory](../demo/):
- `slicing.ipynb` - Slicing operations demonstration
- `inference_for_ultralytics.ipynb` - YOLOv8/YOLO11/YOLO12 integration
- `inference_for_yolov5.ipynb` - YOLOv5 integration
- `inference_for_mmdetection.ipynb` - MMDetection integration
- `inference_for_huggingface.ipynb` - HuggingFace models integration
- `inference_for_torchvision.ipynb` - TorchVision models integration
- `inference_for_rtdetr.ipynb` - RT-DETR integration
- `inference_for_sparse_yolov5.ipynb` - DeepSparse optimized inference

Getting Started

If you're new to SAHI:

1. Start with the [prediction utilities](predict.md) to understand basic inference
2. Explore the [slicing utilities](slicing.md) to learn about processing large images
3. Check out the [CLI commands](cli.md) for command-line usage
4. Dive into [COCO utilities](coco.md) for dataset operations
5. Try the interactive notebooks in the [demo directory](../demo/) for hands-on experience

0.11.21

What's Changed
* Exclude classes from inference using pretrained or custom models by gguzzy in https://github.com/obss/sahi/pull/1104
* pyproject.toml, pre-commit, ruff, uv and typing issues, fixes 1119 by Dronakurl in https://github.com/obss/sahi/pull/1120
* add class exclusion example into predict docs by gguzzy in https://github.com/obss/sahi/pull/1125
* Add OBB demo by fcakyon in https://github.com/obss/sahi/pull/1126
* fix a type hint typo in predict func by fcakyon in https://github.com/obss/sahi/pull/1111
* Remove numpy<2 upper pin by weiji14 in https://github.com/obss/sahi/pull/1112
* fix ci badge on readme by fcakyon in https://github.com/obss/sahi/pull/1124
* fix version in pyproject.toml by fcakyon in https://github.com/obss/sahi/pull/1127

New Contributors
* Dronakurl made their first contribution in https://github.com/obss/sahi/pull/1120
* gguzzy made their first contribution in https://github.com/obss/sahi/pull/1104

**Full Changelog**: https://github.com/obss/sahi/compare/0.11.20...0.11.21

0.11.20

What's Changed
* add yolo11 and ultralytics obb task support by fcakyon in https://github.com/obss/sahi/pull/1109
* support latest opencv version by fcakyon in https://github.com/obss/sahi/pull/1106
* simplify yolo detection model code by fcakyon in https://github.com/obss/sahi/pull/1107
* Pin shapely>2.0.0 by weiji14 in https://github.com/obss/sahi/pull/1101


**Full Changelog**: https://github.com/obss/sahi/compare/0.11.19...0.11.20

0.11.19

What's Changed
* fix ci actions by fcakyon in https://github.com/obss/sahi/pull/1073
* Update has_mask method for mmdet models (handle an edge case) by ccomkhj in https://github.com/obss/sahi/pull/1066
* Another self-intersection corner case handling by sergiev in https://github.com/obss/sahi/pull/982
* Update README.md by fcakyon in https://github.com/obss/sahi/pull/1077
* drop non-working yolonas support by fcakyon in https://github.com/obss/sahi/pull/1097
* drop yolonas support part2 by fcakyon in https://github.com/obss/sahi/pull/1098
* Update has_mask method for mmdet models (handle ConcatDataset) by ccomkhj in https://github.com/obss/sahi/pull/1092

New Contributors
* ccomkhj made their first contribution in https://github.com/obss/sahi/pull/1066

**Full Changelog**: https://github.com/obss/sahi/compare/0.11.18...0.11.19

0.11.18

What's Changed
* add yolov8 mask support, improve mask processing speed by 4-5x by mayrajeo in https://github.com/obss/sahi/pull/1039
* fix has_mask method for mmdet models by Alias-z in https://github.com/obss/sahi/pull/1054
* Fix `TypeError: 'GeometryCollection' object is not subscriptable` when slicing COCO by Alias-z in https://github.com/obss/sahi/pull/1047
* support opencv-python version 4.9 by iokarkan in https://github.com/obss/sahi/pull/1041
* add upperlimit to numpy dep by fcakyon in https://github.com/obss/sahi/pull/1057
* add more unit tests by MMerling in https://github.com/obss/sahi/pull/1048
* upgrade ci actions by fcakyon in https://github.com/obss/sahi/pull/1049

New Contributors
* iokarkan made their first contribution in https://github.com/obss/sahi/pull/1041
* MMerling made their first contribution in https://github.com/obss/sahi/pull/1048
* Alias-z made their first contribution in https://github.com/obss/sahi/pull/1047

**Full Changelog**: https://github.com/obss/sahi/compare/0.11.16...0.11.18

0.11.16

What's Changed
* Update README.md by fcakyon in https://github.com/obss/sahi/pull/966
* Updated the constant variables for Yolov8 by AmoghDhaliwal in https://github.com/obss/sahi/pull/917
* Slicing: add unique slice index number to output file name by jokober in https://github.com/obss/sahi/pull/943
* update version by fcakyon in https://github.com/obss/sahi/pull/967
* Correcting type hints for `get_slice_bboxes()`. by S-aiueo32 in https://github.com/obss/sahi/pull/930
* Correcting `slice_image()` by S-aiueo32 in https://github.com/obss/sahi/pull/931
* Customize YOLOv8 image_size & device + Allow Saving Slices by lakshaymehra in https://github.com/obss/sahi/pull/929
* fix package testing workflow paths by fcakyon in https://github.com/obss/sahi/pull/968
* remove detectron2 from package tests by fcakyon in https://github.com/obss/sahi/pull/979
* ONNX runtime support by karl-joan in https://github.com/obss/sahi/pull/922
* Fix RLE when segmentation is None by bobyard-com in https://github.com/obss/sahi/pull/996
* update functions docstrings and type hinting by fcakyon in https://github.com/obss/sahi/pull/1016
* fix postprocess type options description by williamlung in https://github.com/obss/sahi/pull/1013
* revert back package version by fcakyon in https://github.com/obss/sahi/pull/1017
* Improve printout readability by jacobmarks in https://github.com/obss/sahi/pull/1009
* improve readme by fcakyon in https://github.com/obss/sahi/pull/1018
* remove an unused list in postprocess by developer0hye in https://github.com/obss/sahi/pull/1002
* add more contributors to readme by fcakyon in https://github.com/obss/sahi/pull/1019
* add more contributors to readme by fcakyon in https://github.com/obss/sahi/pull/1020
* Adds link to new FiftyOne tutorial by jacobmarks in https://github.com/obss/sahi/pull/1023
* RTDETR implementation by edugzlez in https://github.com/obss/sahi/pull/940
* Improve yolov8 config by GuillaumeBruand in https://github.com/obss/sahi/pull/988
* update readme by fcakyon in https://github.com/obss/sahi/pull/1034
* relax opencv version by fcakyon in https://github.com/obss/sahi/pull/1035
* disable slice export by default by fcakyon in https://github.com/obss/sahi/pull/1036
* remove quality param in slice export due to errors by fcakyon in https://github.com/obss/sahi/pull/1037
* fix for using bgr image in inference instead of rgb by bilkosem in https://github.com/obss/sahi/pull/1022

New Contributors
* AmoghDhaliwal made their first contribution in https://github.com/obss/sahi/pull/917
* S-aiueo32 made their first contribution in https://github.com/obss/sahi/pull/930
* lakshaymehra made their first contribution in https://github.com/obss/sahi/pull/929
* karl-joan made their first contribution in https://github.com/obss/sahi/pull/922
* bobyard-com made their first contribution in https://github.com/obss/sahi/pull/996
* williamlung made their first contribution in https://github.com/obss/sahi/pull/1013
* jacobmarks made their first contribution in https://github.com/obss/sahi/pull/1009
* developer0hye made their first contribution in https://github.com/obss/sahi/pull/1002
* edugzlez made their first contribution in https://github.com/obss/sahi/pull/940
* GuillaumeBruand made their first contribution in https://github.com/obss/sahi/pull/988
* bilkosem made their first contribution in https://github.com/obss/sahi/pull/1022

**Full Changelog**: https://github.com/obss/sahi/compare/0.11.15...0.11.16

Page 1 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.