Skip to content

v0.1.31 - Update Platform API contract (#55)

Choose a tag to compare

@github-actions github-actions released this 07 Sep 16:00
· 122 commits to main since this release
2166f9b

🌟 Summary

Version v0.1.31 upgrades the Ultralytics Platform API and Python SDK with tools for finding similar training images and richer validation-example metadata. 🔍

📊 Key Changes

  • Similar-image retrieval for training results: Added a new models endpoint to find public-dataset images visually similar to a training run’s worst validation images.
    • Supports optional filtering by selected image hashes.
    • Returns image thumbnails, full image URLs when available, dataset and license information, and similarity scores.
    • Added both synchronous and asynchronous Python SDK methods: find_similar_training_images.
  • Richer validation analysis: Best- and worst-example responses now include optional classIds, identifying all ground-truth classes present in each image.
  • Updated typed Python SDK: Regenerated the SDK with strongly typed response structures for the new endpoint and metadata fields.
  • Release and contract synchronization: Updated the OpenAPI specification, checksum, and ultralytics-platform package to version 0.1.31.
  • Improved release reliability: CI validates the generated SDK against the API contract before merging, helping ensure the published package matches the documented API. ✅

🎯 Purpose & Impact

  • 🧠 Improve dataset development: Similar images can help users expand datasets with relevant examples related to difficult validation cases.
  • 🎯 Target model weaknesses: Developers can focus data collection and labeling efforts on the images their models perform worst on.
  • 🏷️ Enable class-level analysis: Ground-truth class IDs make it easier to identify which object categories are associated with strong or weak examples.
  • 🐍 Simplify Python integration: The regenerated SDK provides synchronous and asynchronous access with typed responses and consistent API behavior.
  • 📦 Increase release confidence: Contract-driven generation and CI validation reduce the risk of mismatches between the Platform API and the published SDK.

What's Changed

Full Changelog: v0.1.29...v0.1.31