Repository navigation
v0.1.7 - Update Platform API contract (#29)
🌟 Summary
v0.1.7 updates the Ultralytics Platform API contract and regenerates the Python SDK, adding comprehensive support for depth datasets and depth-model inference while improving type safety and release automation. 🚀
📊 Key Changes
-
Depth task support added 🧭
- Datasets can now use the
depthtask type. - Dataset schemas include depth scale, depth assets, previews, dimensions, valid ranges, and coverage information.
- Image listings and URL responses can expose paired depth targets and depth preview images.
- Model metadata now reports whether depth predictions use a verified scale.
- Datasets can now use the
-
Richer inference responses 🤖
- Model and deployment prediction results are now strongly typed instead of generic unstructured data.
- Responses describe bounding boxes, oriented bounding boxes, segmentation coordinates, pose keypoints, class confidence, and semantic pixel coverage.
- Inference metadata now includes clearer timing breakdowns, model information, and supported task types.
- Depth inference outputs include structured grayscale image data and depth metadata.
-
Clearer depth-model behavior
⚠️ - Depth models accept images only; video inputs are not supported.
- Depth datasets are excluded from image auto-annotation because dense depth maps cannot be converted into standard object labels.
- Dataset conflicts now also account for task changes and active imports.
-
Python SDK regenerated as version
0.1.7🐍- The SDK’s generated types and documentation now match the live OpenAPI contract.
- Dataset, model, deployment, image, upload, lifecycle, and project resource documentation received clearer descriptions.
- Examples now use more realistic identifiers and display names.
-
Contract-driven versioning and publishing 📦
- The hard-coded SDK version was removed from
openapi.config.json. - The package version now comes from the OpenAPI contract’s
info.version. - A contract version bump reaching
maincan automatically publishultralytics-platformto PyPI.
- The hard-coded SDK version was removed from
-
Dependabot configuration corrected 🔧
- GitHub Actions dependencies are now monitored from the repository root, allowing Dependabot to detect workflow updates correctly.
🎯 Purpose & Impact
- Enables new depth workflows 🌊 Users can manage depth datasets, inspect paired depth targets, and consume depth-model predictions through the Platform API and Python SDK.
- Improves developer experience ✅ Stronger generated types make API responses easier to understand, validate, and use safely in Python applications.
- Reduces integration surprises 🛡️ Explicit input restrictions and richer response schemas clarify which data formats and model tasks are supported.
- Keeps releases synchronized 🔄 Contract-driven versioning ensures the SDK version reflects the API version and helps automate reliable PyPI releases.
- Improves maintenance automation 📅 Dependabot can now propose GitHub Actions updates as intended.
What's Changed
- Point dependabot github-actions at the repository root by @glenn-jocher in #25
- Take the SDK version from the contract by @glenn-jocher in #26
- Update Platform API contract by @UltralyticsAssistant in #29
Full Changelog: v0.1.5...v0.1.7