Skip to content

0.14.1

Choose a tag to compare

@onuralpszr onuralpszr released this 24 Nov 09:17
· 8 commits to main since this release
4e05479

🚀 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_size now 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 same image_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=True loads every image (#1511) and waits only for its own threads.
  • The COCO evaluation scripts read files as UTF-8 (#1510).
  • predict reads .wmv files and upper-case video file names as videos (#1517).
  • increment_path gives 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_dict computes 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