Repository navigation
v0.1.19 - Update Platform API contract (#45)
🌟 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_mappingparameter to synchronous and asynchronous:images.predict()datasets.create_batch()
- Maps each model class to a dataset class index.
- Supports
nullvalues 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_mappingto the API’sclassMappingfield.
- Added the optional
-
Platform API and SDK version update 📦
- Updated the OpenAPI contract from
0.1.18to0.1.19. - Regenerated the typed Python SDK and aligned its package version.
- The updated SDK is prepared for publication to PyPI.
- Updated the OpenAPI contract from
-
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-Typeas a fallback. - This fixes failures with cloud storage uploads that require additional signed headers.
- Upload tests now include all headers returned with signed upload URLs, while retaining
-
More tolerant CLA workflow ✍️
- Recognized CLA signature comments can now include surrounding whitespace or Markdown formatting.
- Exact matching remains in place for the
recheckcommand.
🎯 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 assigningnull, 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
- Send required signed-upload headers in live SDK lifecycle by @glenn-jocher in #42
- Gate contract-update merges on the live SDK lifecycle by @glenn-jocher in #43
- Accept normalized CLA signature comments by @glenn-jocher in #44
- Update Platform API contract by @UltralyticsAssistant in #45
Full Changelog: v0.1.18...v0.1.19