Repository navigation
0.14.1
🚀 SAHI v0.14.1
A patch release with 15 fixes and one speedup. It makes COCO loading and YOLO export more reliable, fixes image reading and masks, and makes SAHI work better on Windows.
👀 Worth knowing
- torchvision
image_sizenow means the longer side of the model input (#1515). Non-square images used to be resized smaller than you asked for, so you may see more detections at the sameimage_size. - YOLO export class ids are now the position of each category in
names(#1518). COCO files whose category ids do not start at 0 now export labels that match the data yaml.
🐛 Fixes
- Ultralytics masks line up with their boxes (#1516) by cutting the letterbox padding off before resizing.
- Opened images and arrays in other modes are converted to RGB (#1513), the same way image paths are.
- Boxes that fall outside the image keep the right way round (#1507) when they are clamped.
- Clipping COCO annotations to the image keeps polygons (#1509) instead of turning them into boxes.
- Remapping category ids leaves the given COCO dict unchanged (#1514), so it can be loaded again.
use_threads=Trueloads every image (#1511) and waits only for its own threads.- The COCO evaluation scripts read files as UTF-8 (#1510).
predictreads.wmvfiles and upper-case video file names as videos (#1517).increment_pathgives each run its own folder when the name has dots or brackets (#1512).
🪟 Windows
- YOLO export copies images when symlinks cannot be created (#1519), as on most Windows accounts.
- Images are read and written at non-ASCII paths (#1520).
⚡ Performance
create_coco_dictcomputes the bboxes of all annotations in one batch (#1506), with the same output as before.
📚 Documentation
- The Chinese site configuration matches the English one (#1521).
🙏 Thanks
Thanks to @mh-masum6875 for most of the fixes in this release, to @dexhunter for the create_coco_dict speedup and to @ZephyrKeXiner for the Chinese docs update.
Full Changelog: 0.14.0...0.14.1