🚀 SAHI v0.12.0 Batch Inference, Torch-Free Core & New Open-Vocabulary Models #1365
onuralpszr
announced in
Announcements
Replies: 1 comment
|
Awesome update! Thanks for all the work everyone. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SAHI v0.12.0 Batch Inference, Torch-Free Core & New Open-Vocabulary Models
This is one of the largest SAHI releases to date: 95 commits since
0.11.34(rolling in the0.11.35/0.11.36hotfixes), spanning a re-architected post-processing engine, true batch inference, a lighter torch-free core, six new model families, and a full documentation overhaul.🚀 Highlights
⚡ Batch inference, torch-free core & accelerated post-processing backends (#1336)
A ground-up reworking of how SAHI runs and merges predictions:
🎚️ Finer control over slicing & post-processing
force_postprocess_typeinget_sliced_predictionfor explicit control over how overlapping detections are merged (feat: 🚀 add force_postprocess_type option to get_sliced_prediction for improved control over postprocessing #1346).confidence_thresholdoverride across the prediction APIs tune confidence without rebuilding the model object (feat: 🚀 allow per-call confidence_threshold override in prediction APIs #1352).get_sliced_prediction, available in both the Python API and CLI (Add progress bar and progress callback for get_sliced_prediction #1255).🧠 New model support
📚 Documentation overhaul
✨ Performance & Improvements
STRtreespatial index, dramatically speeding up merging on images with many slices/detections (Significantly improve postprocessing speed (NMS, NMM, GREEDYNMM) by using STRtree from shapely #1248). Thanks @nikvo1!read_image_as_pilfor quicker slicing throughput (perf: ⚡️ enhance read_image_as_pil read speed for better slice speed #1353).nmsperformance with correct handling of empty predictions (fix: 🐛 improve nms function for better performance and handle empty predictions #1288).pybboxeswith a lightweight in-houseyolo_bbox_to_voc_bbox(refactor: ♻️ replace pybboxes with custom yolo_bbox_to_voc_bbox function #1320).pybboxesand pinnedopencv-pythonversion constraints for cleaner installs (remove opencv-python dependency version constraint #1325).🐞 Bug Fixes
shapely_annotation.multipolygon(Fix empty bbox because of empty shapely_annotation.multipolygon #1140).BoundingBox(fix: 🐛 correct margin calculation in BoundingBox class #1286).read_image_as_pil(fix: 🐛 improve image handling in read_image_as_pil for CHW format #1287).get_slice_bboxes(must be< 1.0) (fix: 🐛 validate overlap ratios in get_slice_bboxes to ensure they are less than 1.0 #1285).RTDetrDetectionModel(fix: 🐛 correct error message for invalid model path in RTDetrDetectionModel #1266).pywinptyfor Windows dev compatibility (fix: 🐞 add pywinpty dependency for Windows compatibility in dev and override-dependencies #1319).🧹 Maintenance & CI
requirements.txt, MMDet workflow, and unused Netlify config (refactor: ♻️ remove deprecated yolov5 functions and serialize methods #1326, chore: delete requirements.txt #1342, chore: delete .github/workflows/mmdet.yml #1341, chore: 🧹 remove unused netlify file #1335).numpy<3.0,torchvision 0.23.0, and many dependency bumps via Dependabot (now also covering pip).🙏 Contributors
Thanks to everyone who contributed to this release:
@onuralpszr, @fcakyon, @siromermer, @ZephyrKeXiner, @yogendrasinghx, @srikrishnavignesh, @ibuldakov, @ducviet00, @volks73, @RizwanMunawar, @nikvo1, @vinnik-dmitry07, and @gboeer and @dependabot for keeping dependencies fresh.
🌟 New Contributors
Full Changelog: 0.11.34...0.12.0
This discussion was created from the release 🚀 SAHI v0.12.0 — Batch Inference, Torch-Free Core & New Open-Vocabulary Models.
All reactions