Repository navigation
v0.1.50 - Update Platform API contract (#74)
π 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_imagesAPI 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_mappingsupport so source classes can be matched to destination classes by name, ID, or explicitly ignored. - π Updated Python SDK: Added
releaseandclass_mappingparameters to both synchronous and asynchronousadopt_imagesclients. - β
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-platformPython 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
- Update Platform API contract by @UltralyticsAssistant in #74
Full Changelog: v0.1.49...v0.1.50