diff --git a/CHANGELOG.md b/CHANGELOG.md index b944af5c92..a6edbd063d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 () - Update ov ir model for explorer openvino launcher with CLIP ViT-L/14@336px model () +- Optimize path assignment to handle point cloud in JSON without images + () ### Bug fixes - Fix datumaro format to load visibility information from Points annotations diff --git a/src/datumaro/plugins/data_formats/datumaro/base.py b/src/datumaro/plugins/data_formats/datumaro/base.py index da83a18ced..5278782822 100644 --- a/src/datumaro/plugins/data_formats/datumaro/base.py +++ b/src/datumaro/plugins/data_formats/datumaro/base.py @@ -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