New Release: Ultralytics v8.2.84

:rocket: Announcing Ultralytics v8.2.84 Release!

:star2: Summary

We are thrilled to announce the release of Ultralytics v8.2.84! This update brings flexible image size inference for SAM2 using the ultralytics package, along with significant improvements to testing and documentation.

:bar_chart: Key Changes

  • Flexible SAM2 Image Size Inference: SAM2 now supports custom image sizes through the ultralytics package, allowing inference at sizes like 640x640 instead of the default 1024x1024.
  • Testing Enhancement: Updated CI testing workflow for version-specific compatibility.
  • Documentation Update: Refreshed documentation with higher quality images.

:dart: Purpose & Impact

  • Enhanced Flexibility: Users can now run SAM2 inference using the ultralytics package with custom imgsz values (e.g., imgsz=640), offering significant advantages:
    • Faster processing times for smaller images
    • Reduced memory usage, enabling inference on devices with limited resources
    • Maintains good segmentation quality while allowing size-performance tradeoffs
  • Improved Efficiency: The ability to use smaller image sizes (like 640x640) instead of the default 1024x1024 can lead to faster inference without significant loss in accuracy for many use cases.
  • Broader Accessibility: This update makes SAM2 more accessible for users with varying computational resources, as they can now adjust the image size based on their specific needs and hardware constraints.

:computer: Usage Example

from ultralytics import SAM

# Initialize SAM model
model = SAM('sam2_b.pt')

# Run inference with custom image size
results = model('path/to/image.jpg', imgsz=640)

This update significantly enhances SAM2’s versatility within the ultralytics ecosystem, allowing users to fine-tune the balance between speed and accuracy based on their specific requirements.

:hammer_and_wrench: What’s Changed

Full Changelog: v8.2.83…v8.2.84

:loudspeaker: Try It Out!

We encourage you to try out the new release and share your feedback. Your input is invaluable in helping us improve and deliver the best possible tools for your projects.

Thank you for being a part of the Ultralytics community! :rocket:

Release URL: Ultralytics v8.2.84