Skip to content

Add image output and update dependencies list for replicate to work#19

Merged
glenn-jocher merged 2 commits into
ultralytics:mainfrom
onuralpszr:fix/output-image-replicate
Aug 5, 2025
Merged

Add image output and update dependencies list for replicate to work#19
glenn-jocher merged 2 commits into
ultralytics:mainfrom
onuralpszr:fix/output-image-replicate

Conversation

@onuralpszr
Copy link
Copy Markdown
Member

@onuralpszr onuralpszr commented Aug 5, 2025

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

This update improves the YOLO11n Replicate integration by upgrading dependencies, enhancing compatibility, and refining output handling. 🚀

📊 Key Changes

  • Upgraded Python version from 3.11 to 3.12 for better performance and future compatibility.
  • Updated and pinned key dependencies:
    • Torch set to version 2.3.1.
    • Added/updated numpy, opencv-python, and ffmpeg for broader functionality.
  • Improved output structure:
    • Introduced a new Output class for cleaner, more flexible results.
    • Detection results can now be returned as a JSON string or as an annotated image.
  • Minor code clean-up and improved type annotations.

🎯 Purpose & Impact

  • Ensures compatibility with the latest Python and PyTorch releases, reducing potential issues for users.
  • Adds support for more image and video formats via new system packages.
  • Makes it easier for developers and users to work with detection results, whether they want images or structured data.
  • Sets a foundation for future enhancements and smoother integration with Ultralytics HUB and other platforms.

@onuralpszr onuralpszr force-pushed the fix/output-image-replicate branch 3 times, most recently from 8a4264f to 77541a6 Compare August 5, 2025 11:33
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
@onuralpszr onuralpszr force-pushed the fix/output-image-replicate branch from 77541a6 to 95c8190 Compare August 5, 2025 11:34
@onuralpszr
Copy link
Copy Markdown
Member Author

cc @glenn-jocher

@onuralpszr
Copy link
Copy Markdown
Member Author

Test result on my private one

image

@glenn-jocher
Copy link
Copy Markdown
Member

@onuralpszr awesome!! Maybe this will solve it. I've been going in circles on this all morning.

I noticed we're missing Ultralytics App here also (for PR summaries from forks etc.). I think maybe I need to enable the app org-wide as it might just be on the Ultralytics repo currently.

@onuralpszr
Copy link
Copy Markdown
Member Author

@onuralpszr awesome!! Maybe this will solve it. I've been going in circles on this all morning.

I noticed we're missing Ultralytics App here also (for PR summaries from forks etc.). I think maybe I need to enable the app org-wide as it might just be on the Ultralytics repo currently.

Would you also please give me perm in here as well. (for pr and quick fixes)

@glenn-jocher
Copy link
Copy Markdown
Member

@onuralpszr done! Added @ultralytics/yolo with maintain permissions

@glenn-jocher
Copy link
Copy Markdown
Member

Ok I've expanded Ultralytics App to all repos, so should provide PR summaries and replies now for all repos including new repos. It might work on merging this.

@glenn-jocher glenn-jocher changed the title feat: 🚀 add image output and update deps list for replicate to work Add image output and update dependencies list for replicate to work Aug 5, 2025
@glenn-jocher glenn-jocher merged commit 5161d6f into ultralytics:main Aug 5, 2025
8 checks passed
@UltralyticsAssistant
Copy link
Copy Markdown
Member

🎉 Fantastic work, @onuralpszr and @glenn-jocher! This PR marks a significant step forward for YOLO11n Replicate integration—your upgrades and refinements truly elevate compatibility, performance, and user experience. As Henry Ford said, “If everyone is moving forward together, then success takes care of itself.” Your teamwork and dedication set a strong foundation for seamless integration with Ultralytics HUB and beyond. Thank you for your outstanding contributions and commitment to excellence! 🚀

@glenn-jocher glenn-jocher added the fixed Bug has been resolved label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixed Bug has been resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants