Sahi

Latest version: v0.11.19

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

Scan your dependencies

Page 12 of 16

0.4.5

enhancement
- add colab demo support (127)
- add warning for image files without suffix (129)
- seperate mmdet/yolov5 utils (130)

0.4.4

new feature
- add mot utils (122)
[read mot utils doc for more detail](https://github.com/obss/sahi/blob/de685e2a272bf993835a54c3dc10b0afd9b4812a/docs/MOT.md)

documentation
- update installation (118)
- add details for coco2yolov5 usage (120)

bug fixes
- fix typo (117)
- update coco2yolov5.py (115)

breaking changes
- drop python 3.6 support (123)

0.4.3

refactorize postprocess (109)
- specify postprocess type as `--postprocess_type UNIONMERGE` or `--postprocess_type NMS` to be applied over sliced predictions
- specify postprocess match metric as `--match_metric IOS` for intersection over smaller area or `--match_metric IOU` for intersection over union
- specify postprocess match threshold as `--match_thresh 0.5`
- add `--class_agnostic` argument to ignore category ids of the predictions during postprocess (merging/nms)

export visuals with gt (107)
- export visuals with predicted + gt annotations into `visuals_with_gt` folder when `coco_file_path` is provided
- keep source folder structure when exporting results
- add `from_coco_annotation_dict` classmethod to `ObjectAnnotation`
- remove unused imports/classes/parameters
- better typing hints

0.4.2

- add yolov5 support: [check yolov5 demo notebook](https://github.com/obss/sahi/blob/main/demo/inference_for_yolov5.ipynb)

CLI usage:
bash
python scripts/predict.py --model_type yolov5 --source image/file/or/folder --model_path path/to/model

0.3.19

- refactorize slicing, faster coco indexing (95)

0.3.18

- utilize ignore_negative_samples property (90):

Filter out images that does not contain any annotation

python
from sahi.utils.coco import Coco
set ignore_negative_samples as False if you want images without annotations present in json and yolov5 exports
coco = Coco.from_coco_dict_or_path("coco.json", ignore_negative_samples=True)


- fix typo in get_area_filtered_coco (89)

Page 12 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.