pypi ultralytics 8.4.226
v8.4.226 - Speed up box and keypoint scaling with in-place tensor views (#27511)

39 minutes ago

🌟 Summary

Ultralytics 8.4.226 makes coordinate processing faster, adds more flexible edge-device exports, and improves annotation and dataset workflows.

📊 Key Changes

  • ⚡ Faster box and keypoint scaling — the main change: The release uses in-place tensor views and removes redundant assignments across prediction, pose decoding, tiled inference, masks, and training-loss calculations. In benchmarks, scale_boxes was about 30–60% faster, depending on device and box format; YOLO26n CUDA predictions saved a median 34 microseconds per image. Coordinate changes preserve confidence scores, classes, keypoints, and oriented-box angles.
  • 📱 Qualcomm QNN export now supports FP16 on supported Snapdragon targets, including Snapdragon X Elite, without calibration data. W8A16 remains the default; Snapdragon 888 supports W8A16 only.
  • 🧠 High-resolution semantic prediction uses less peak memory by resizing class outputs in chunks rather than all at once, while preserving the resulting class maps in validation tests.
  • 📦 LiteRT W8A16 exports retain floating-point model outputs for detection, depth, and classification heads, avoiding clipping that could harm predictions.
  • ✅ YOLOWorld and YOLOE exported models can now be validated, and World/YOLOE text trainers accept datasets whose training paths are listed as multiple directories.
  • 🗂️ Dataset handling is more robust: relative image-list paths now find their labels correctly, and valid JPEGs with trailing bytes can be used on read-only datasets without being rewritten.
  • 🏷️ Platform annotation now features Ultralytics VLM1 2B and 4B as class-prompted models, with VLM1 2B as the default for eligible detection datasets. Batch annotation and API use are free for a limited time.
  • 📚 Guidance and export documentation were updated, including instructions for semantic segmentation with a Pascal VOC-style dataset and refreshed Qualcomm QNN precision details.

🎯 Purpose & Impact

  • Quicker coordinate processing reduces overhead during prediction and training without changing what the coordinates represent.
  • More deployment choices let users target supported Qualcomm hardware with FP16 when calibration is inconvenient, or keep using the smaller W8A16 default.
  • Lower memory use for large images makes semantic prediction more practical on memory-constrained systems.
  • More reliable exports and data loading help users validate exported models and train from datasets that previously failed in particular configurations.
  • Faster annotation setup gives Platform users a ready-to-use VLM option for labeling detection datasets with class names alone.

What's Changed

New Contributors

Full Changelog: v8.4.225...v8.4.226

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.