Announcing Ultralytics v8.2.84 Release!
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.
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.
Purpose & Impact
- Enhanced Flexibility: Users can now run SAM2 inference using the
ultralytics
package with customimgsz
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.
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.
Whatβs Changed
- Add retry step to failed Conda tests by @glenn-jocher in PR #15884
- Use AVIF banner images by @glenn-jocher in PR #15876
- Remove image β?β args by @glenn-jocher in PR #15891
- Fix HUB download and train by @glenn-jocher in PR #15896
- Optimize Docs images by @RizwanMunawar in PR #15900
- Run Conda tests with aligned tag/version by @glenn-jocher in PR #15904
- Adding missing datasets information to docs by @jk4e in PR #15916
ultralytics 8.2.84
new SAM flexibleimgsz
inference by @Laughing-q in PR #15882
Full Changelog: v8.2.83β¦v8.2.84
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!
Release URL: Ultralytics v8.2.84