Skip to content

v0.1.20 - Update Platform API contract (#46)

Choose a tag to compare

@github-actions github-actions released this 30 Aug 00:39
· 131 commits to main since this release
99112df

🌟 Summary

v0.1.20 synchronizes the Ultralytics Platform API contract and regenerates the typed Python SDK, adding richer training controls, stronger validation, and improved cloud-storage integration support.

📊 Key Changes

  • 🔄 Updated the Platform API contract and Python SDK

    • The OpenAPI specification and SDK version now match 0.1.20.
    • The Python SDK is regenerated deterministically from the live API contract.
    • CI validates the generated package before release, helping ensure the published SDK matches the tested source.
  • ☁️ Expanded cloud-storage integration requests

    • Storage integrations for Google Cloud Storage, Amazon S3, and Azure Blob Storage now use a consistent request structure.
    • Requests require one or more storage targets, a provider, and provider-specific credentials.
    • The SDK now types the storage integration request body as a dictionary instead of an unrestricted value.
  • 🧪 Added and clarified training configuration options

    • Added controls for class weighting, YOLO26/RLE pose loss, oriented bounding box loss, depth losses, CutMix, BGR augmentation, copy-paste modes, classification auto-augmentation, erasing, channel layout, profiling, mask handling, and loss normalization.
    • Training examples now document the expanded set of supported options, including settings such as cls_pw, rle, angle, dlog, dgrad, auto_augment, channels_last, and mask_ratio.
    • Training parameter descriptions were rewritten to explain when each option is useful and how it may affect results.
  • ✅ Strengthened API validation

    • Added minimum and maximum length checks for annotation arrays, keypoints, vectors, and other structured data.
    • Improved timestamp validation to require complete time values, including seconds.
    • Replaced several less-readable nullable and union definitions with clearer OpenAPI types.
    • Added stricter validation for fixed-size arrays used in training and dataset statistics.
  • 📦 Improved response schemas

    • Added or restored explicit response models for listing datasets, models, projects, bucket integrations, deployments, exports, and image updates.
    • Corrected response schema organization and clarified several model and project response types.

🎯 Purpose & Impact

  • 🚀 More reliable SDK releases: Contract-driven generation and CI checks reduce the chance that the Python SDK and live Platform API drift apart. A version bump in the contract can also drive the corresponding PyPI publication.

  • 🛠️ More flexible training workflows: Users can configure newer training capabilities across detection, segmentation, pose, classification, oriented bounding box, and depth tasks. This is especially useful when fine-tuning YOLO26 models with specialized datasets.

  • 📋 Clearer configuration experience: More descriptive training options make it easier for both new and experienced users to choose appropriate augmentation, optimization, validation, and hardware settings.

  • 🧹 Earlier error detection: Stronger schema validation catches malformed annotations, invalid timestamps, incomplete arrays, and incorrect storage requests before they reach downstream processing.

  • ⚠️ Compatibility considerations: Applications that send storage-integration requests, rely on timestamps without seconds, or provide loosely typed training values may need updates to conform to the stricter v0.1.20 contract.

What's Changed

Full Changelog: v0.1.19...v0.1.20