Skip to content

Commit

Permalink
Optimize path assignment to handle point cloud in JSON without images (
Browse files Browse the repository at this point in the history
…#1649)

- Same as #1643 
- Apply this to release/1.10.0
  • Loading branch information
sooahleex authored Oct 21, 2024
1 parent 62bb4f4 commit 8d9a4e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(<https://github.com/openvinotoolkit/datumaro/pull/1599>)
- Update ov ir model for explorer openvino launcher with CLIP ViT-L/14@336px model
(<https://github.com/openvinotoolkit/datumaro/pull/1603>)
- Optimize path assignment to handle point cloud in JSON without images
(<https://github.com/openvinotoolkit/datumaro/pull/1643>)

### Bug fixes
- Fix datumaro format to load visibility information from Points annotations
Expand Down
3 changes: 1 addition & 2 deletions src/datumaro/plugins/data_formats/datumaro/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ def _parse_item(self, item_desc: Dict) -> Optional[DatasetItem]:
pcd_info = item_desc.get("point_cloud")
if media and pcd_info:
raise MediaTypeError(STR_MULTIPLE_MEDIA)
if pcd_info:
pcd_path = pcd_info.get("path")
if pcd_info and (pcd_path := pcd_info.get("path")):
point_cloud = osp.join(self._pcd_dir, self._subset, pcd_path)

related_images = None
Expand Down

0 comments on commit 8d9a4e3

Please sign in to comment.