pypi ultralytics 8.4.197
v8.4.197 - `ultralytics 8.4.197` Check AMP on an untrained YOLO26n without downloading weights (#26967)

one hour ago

๐ŸŒŸ Summary

Ultralytics 8.4.197 makes AMP checks work without downloading model weights and removes PyYAML from the base dependencies. ๐Ÿš€

๐Ÿ“Š Key Changes

  • AMP checks no longer download a checkpoint. The check builds an untrained YOLO26n from its YAML config and compares FP32 and AMP results across convolution and attention layers.
  • AMP checks are more independent of training setup. They check the modelโ€™s device without relying on pretrained weights, internet access, or resetting callbacks.
  • Ultralytics now includes its own minimal YAML reader and writer. It supports the YAML structures commonly used in Ultralytics configs, datasets, and export metadata. PyYAML is no longer a required base dependency.
  • Documentation examples now use ultralytics.utils.YAML to save YAML files.

๐ŸŽฏ Purpose & Impact

  • ๐Ÿ“ด Smoother offline training: AMP checks can run without downloading weights, avoiding unexpected network requests and skipped checks.
  • ๐Ÿ›ก๏ธ More reliable AMP validation: Comparing individual layers helps identify precision issues before AMP is used for training.
  • ๐Ÿ“ฆ Simpler installation: Removing PyYAML from the base requirements reduces a dependency for standard installs. The built-in parser covers Ultralyticsโ€™ common YAML needs, but it is not intended to support every YAML feature.
  • ๐Ÿ“„ More consistent YAML handling: Users can use the same built-in utility to load and save supported Ultralytics YAML files.

What's Changed

Full Changelog: v8.4.196...v8.4.197

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.