pypi ultralytics 8.4.77
v8.4.77 - Add knowledge distillation for YOLO detection models (#24894)

3 hours ago

๐ŸŒŸ Summary

Ultralytics v8.4.77 is headlined by new knowledge distillation support ๐ŸŽ“ for YOLO training, helping smaller models learn from larger ones to boost accuracy without slowing down inference, alongside a useful RegionCounter crash fix and clearer solution docs ๐Ÿ“š.

๐Ÿ“Š Key Changes

  • ๐Ÿง  Knowledge distillation added for YOLO training

    • New training support lets a smaller student model learn from a larger teacher model using the new distill_model argument.
    • A new dis setting controls how strongly the teacher guides training.
    • Added a new internal DistillationModel wrapper to handle:
      • frozen teacher models
      • trainable student models
      • feature matching between models
      • combined standard + distillation loss
    • Includes docs, tests, resume-training support, and checkpoint handling.
  • ๐Ÿš€ New Knowledge Distillation guide

    • Added a dedicated guide with:
      • Python and CLI quickstarts
      • recommended YOLO26 teacher/student pairs
      • usage notes for detect, segment, pose, and OBB
      • benchmark tables for distilled YOLO26 models
      • FAQs and training tips
  • ๐Ÿ“ˆ Potential accuracy gains for compact YOLO26 models

    • Release notes show improved validation results for distilled YOLO26 models, while keeping the deployed model size and runtime essentially the same as the original student model.
  • ๐Ÿ› ๏ธ RegionCounter crash fixed

    • Fixed a bug where regions added with add_region() could crash during processing because required polygon preparation data was missing.
    • Regions are now fully prepared when added, making RegionCounter more reliable.
  • ๐Ÿ“š Documentation refresh for real-time solutions

    • Several YOLO26 guides were reorganized to be easier to follow, including:
      • analytics
      • object counting
      • object blurring
      • object cropping
      • speed estimation
      • distance calculation
    • The analytics guide now also documents area plots.
  • ๐Ÿ”Ž Documentation SEO/title improvements

    • Fixed duplicate page title issues for some dataset and Roboflow-related docs pages, helping users find the right content more easily.

๐ŸŽฏ Purpose & Impact

  • ๐ŸŽฏ Better small-model performance

    • The biggest change is knowledge distillation: it helps smaller YOLO models become more accurate by learning from stronger models during training.
    • This is especially useful for users who want fast, lightweight deployment on edge devices or production systems.
  • โšก No extra inference cost

    • Distillation improves training, not deployment overhead. That means users can often get a better student model without making inference slower.
  • ๐Ÿงช More robust training workflows

    • Support for tests, resume behavior, and cleaner checkpoint handling makes distillation more practical for real-world experiments and longer training jobs.
  • ๐Ÿงฐ More stable solution usage

    • The RegionCounter fix removes a frustrating crash path, especially for users creating regions programmatically instead of only through predefined setup.
  • ๐Ÿ“– Easier onboarding

    • The updated guides make common computer vision tasks more approachable for new users, while also giving experienced users clearer references and cleaner examples.
  • ๐ŸŒ Better discoverability

    • The docs metadata/title fixes improve site organization and search visibility, which helps users reach the right Ultralytics resources faster.

If you'd like, I can also turn this into a short release note version or a more technical developer-focused summary.

What's Changed

Full Changelog: v8.4.76...v8.4.77

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.