pypi ultralytics 8.4.194
v8.4.194 - `ultralytics 8.4.194` Size AutoBatch from the train dataset for every task (#26956)

3 hours ago

🌟 Summary

Ultralytics 8.4.194 makes automatic batch sizing more reliable across tasks, alongside practical fixes for model loading, results saving, datasets, and deployment workflows.

📊 Key Changes

  • 🚀 Automatic batch sizing now uses the training dataset for every task. It accounts for dataset size and labels across classification, detection, and multi-dataset training. If profiling runs out of memory during backward computation, AutoBatch treats that as a limit rather than relying on an invalid measurement.
  • 🛡️ Model YAML parsing is safer and more consistent. Activations must resolve to supported torch.nn modules, and model entries must be PyTorch module classes. Custom YAMLs using other expressions may need updating.
  • 💾 Saving prediction results is more robust. Results.save() and plot(save=True) now produce sensible .jpg filenames for sources such as webcams, videos, or missing paths, and create parent directories when needed.
  • 🔄 Similarity search uses the selected image directory on each startup. This avoids reusing stale indexes from another dataset; the trade-off is that embeddings are rebuilt each time.
  • 🧩 Dataset and URL handling is more dependable. Non-PNG semantic masks are resolved before cache hashing, and URL schemes such as HTTPS://, GS://, and UL:// are now handled without case sensitivity.
  • 📈 Benchmarking and evaluation guidance are clearer. TensorFlow GraphDef benchmarks now include OBB and pose, and the docs explain that classes absent from validation receive the overall mAP value rather than a measured per-class score.

🎯 Purpose & Impact

  • ✅ AutoBatch is less likely to choose a batch size that exceeds a small dataset or available GPU memory, and multi-dataset World/YOLOE training avoids label-access failures.
  • 🔒 Consistent, restricted YAML parsing improves safety, though nonstandard custom model configurations may no longer load.
  • 🧰 More reliable result saving, mask-cache updates, and URL routing reduce common workflow errors.
  • 🔍 Similarity search results better reflect the images currently in the chosen folder, while requiring index-building work at startup.
  • 📚 Documentation updates clarify metric interpretation and integration behavior; no new model architecture is introduced in this release.

What's Changed

Full Changelog: v8.4.193...v8.4.194

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.