Skip to content

v0.1.19 - Update Platform API contract (#45)

Choose a tag to compare

@github-actions github-actions released this 29 Aug 00:32
· 132 commits to main since this release
3066289

🌟 Summary

v0.1.19 adds flexible model-to-dataset class mapping to the Ultralytics Platform API and Python SDK, while strengthening release validation and upload reliability. 🚀

📊 Key Changes

  • Class mapping for predictions and batch annotation 🧩

    • Added the optional class_mapping parameter to synchronous and asynchronous:
      • images.predict()
      • datasets.create_batch()
    • Maps each model class to a dataset class index.
    • Supports null values to exclude model classes from the request.
    • Accepts up to 25,000 mapping entries and only non-negative dataset class indexes.
    • The Python SDK converts class_mapping to the API’s classMapping field.
  • Platform API and SDK version update 📦

    • Updated the OpenAPI contract from 0.1.18 to 0.1.19.
    • Regenerated the typed Python SDK and aligned its package version.
    • The updated SDK is prepared for publication to PyPI.
  • Stronger live API validation ✅

    • The full SDK lifecycle test now runs before contract updates are merged.
    • Contract changes must successfully work against the live API before they can reach the main branch.
  • More reliable signed dataset uploads ☁️

    • Upload tests now include all headers returned with signed upload URLs, while retaining Content-Type as a fallback.
    • This fixes failures with cloud storage uploads that require additional signed headers.
  • More tolerant CLA workflow ✍️

    • Recognized CLA signature comments can now include surrounding whitespace or Markdown formatting.
    • Exact matching remains in place for the recheck command.

🎯 Purpose & Impact

  • Better support for differing class definitions 🎯
    Users can apply a model trained with one class arrangement to datasets using another arrangement, without changing the model itself.

  • More control over annotation results 🗂️
    Classes that are not relevant to a dataset can be omitted by assigning null, helping produce cleaner prediction and batch-annotation outputs.

  • Improved developer experience 🐍
    Python users can access the new capability through both regular and asynchronous SDK methods with typed, documented parameters.

  • Fewer release regressions 🛡️
    Live API operations are now tested before contract-update merges, making it more likely that generated SDK changes work correctly immediately after release.

  • More dependable uploads and automation ⚙️
    Signed-upload header handling prevents cloud-storage failures, while the relaxed CLA check reduces unnecessary workflow friction.

This release focuses on Platform API and SDK functionality rather than changes to YOLO model architectures.

What's Changed

Full Changelog: v0.1.18...v0.1.19