Skip to content

v0.1.50 - Update Platform API contract (#74)

Choose a tag to compare

@github-actions github-actions released this 21 Sep 00:43
· 105 commits to main since this release
e8f6ce6

🌟 Summary

v0.1.50 expands dataset image adoption from simple importing to flexible copying or moving with annotation preservation and class mapping.

πŸ“Š Key Changes

  • πŸ—‚οΈ Copy or move dataset images: The datasets.adopt_images API now supports:
    • Copying images while retaining them in the source dataset.
    • Moving images and atomically removing the inserted source records.
  • 🏷️ Preserve dataset information: Editable-source images can retain their:
    • Annotations
    • Metadata
    • Depth targets
    • Dataset splits
  • πŸ”„ Map classes between datasets: Added class_mapping support so source classes can be matched to destination classes by name, ID, or explicitly ignored.
  • 🐍 Updated Python SDK: Added release and class_mapping parameters to both synchronous and asynchronous adopt_images clients.
  • βœ… Stronger API validation: The contract now reports clear errors for:
    • Invalid class mappings
    • Unmatched source classes
    • Incompatible tasks, image channels, pose metadata, or depth settings
    • External-storage dataset restrictions
  • πŸ“¦ Regenerated SDK and package metadata: The OpenAPI contract, checksum, and ultralytics-platform Python package were updated to version 0.1.50.

🎯 Purpose & Impact

  • πŸš€ Makes it easier to reuse labeled data across datasets without manually rebuilding annotations or metadata.
  • 🧩 Enables safer dataset migration workflows through atomic moves, helping prevent partially completed transfers.
  • 🎯 Reduces class-labeling work when combining datasets with different class definitions.
  • πŸ›‘οΈ Provides clearer validation feedback so incompatible dataset operations can be corrected before retrying.
  • πŸ”§ Keeps the generated Python SDK synchronized with the live Platform API for more reliable client integrations.

What's Changed

Full Changelog: v0.1.49...v0.1.50