Skip to content

Releases: obss/sahi

v0.8.10

23 Nov 08:51
f9bbcdb

Choose a tag to compare

What's Changed

Full Changelog: 0.8.9...0.8.10

v0.8.9

15 Nov 09:39
21ecb28

Choose a tag to compare

What's Changed

Full Changelog: 0.8.8...0.8.9

v0.8.8

02 Nov 11:01
9c634e9

Choose a tag to compare

enhancement

  • add coco to yolov5 export utilty (#258)
  • shapely 2.0.0 support, supported fiftyone versions (#257)
  • update shapely to v1.8.0 (#259)

bugfixes

  • fix a bug in coco upsampling/downsampling (#253)
  • fix a bug in export_coco_as_yolov5 (#262)

ci

  • update yolov5 version in tests (#256)

v0.8.6

19 Oct 17:36
55b2641

Choose a tag to compare

improvements

  • update postprocess behaviour (#247)

testing

  • update torch to 1.9.1 for workflows (#248)
  • update mmdet version to 2.17.0 for testing (#250)
  • add yolov5n weight download util (#251)
  • improve test durations (#252)

v0.8.5

19 Oct 07:25
0a314cd

Choose a tag to compare

bugfixes, enhancements

  • handle when image name is very short in yolov5 conversion (#230)
  • fix coco category creation without supercategory (#237)
  • fix yolov5 conf threshold (#242)
  • fix mmdet img size (#243)
  • handle when mmdet config contains resize with keep_ratio=False (#244)
  • update yolov5 version to 6.0.1 in ci tests (#245)

v0.8.4

13 Sep 10:19
b282843

Choose a tag to compare

  • handle predictions with negative bbox values (#225)
  • fix remove_invalid_coco_results (#227)
  • fix coco evaluation (#228)

Remove invalid coco results:

from sahi.utils.file import save_json
from sahi.utils.coco import remove_invalid_coco_results

# remove invalid predictions from COCO results JSON
coco_results = remove_invalid_coco_results("coco_result.json")

# export processed COCO results
save_json(coco_results, "fixed_coco_result.json")

# bonus: remove invalid predictions from COCO results JSON by giving COCO
# dataset path to also filter out bbox results exceeding image height&width
coco_results = remove_invalid_coco_results("coco_result.json", "coco_dataset.json")

v0.8.3

10 Sep 08:01
2242c1c

Choose a tag to compare

  • fix a bug in coco2fiftyone (#223)

v0.8.2

09 Sep 09:44
731ef6f

Choose a tag to compare

  • fix optional dependencies (#221)
  • move conda builds to conda-forge (#219)

v0.8.1

08 Sep 11:27
e185def

Choose a tag to compare

make repo compatible for conda-forge:

  • Include requirements.txt in sdist (#217) thanks to @weiji14

v0.8.0

02 Sep 22:37
aafb579

Choose a tag to compare

new cli description:

Command Description
predict perform sliced/standard prediction using any yolov5/mmdet model
predict-fiftyone perform sliced/standard prediction using any yolov5/mmdet model and explore results in fiftyone app
coco slice automatically slice COCO annotation and image files
coco fiftyone explore multiple prediction results on your COCO dataset ordered by false positives
coco evaluate evaluate classwise COCO AP and AR for given predictions and ground truth
coco analyse calcualate and export many detection and segmentation error margin plots
coco yolov5 automatically convert any COCO dataset to yolov5 format

new cli usage:

predict

sahi predict --source image/file/or/folder --model_path path/to/model --model_config_path path/to/config

predict-fiftyone

sahi predict-fiftyone --image_dir image/file/or/folder --dataset_json_path dataset.json --model_path path/to/model --model_config_path path/to/config

coco slice

sahi coco slice --image_dir dir/to/images --dataset_json_path dataset.json

coco fiftyone

sahi coco fiftyone --image_dir dir/to/images --dataset_json_path dataset.json cocoresult1.json cocoresult2.json

coco evaluate

sahi coco evaluate --dataset_json_path dataset.json --result_json_path result.json

coco analyse

sahi coco analyse --dataset_json_path dataset.json --result_json_path result.json

coco yolov5

sahi coco yolov5 --image_dir dir/to/images --dataset_json_path dataset.json  --train_split 0.9

breaking changes in predict cli:

  • config_path to model_config_path
  • conf_thresh to model_confidence_threshold
  • match_metric to postprocess_match_metric
  • match_thresh to postprocess_match_threshold
  • class_agnostic to postprocess_class_agnostic
  • pickle to export_pickle, crop to export_crop
  • novisual to export_visual
  • no_sliced_pred to no_sliced_prediction
  • no_standard_pred to no_standard_prediction
  • coco_file to dataset_json_path