diff --git a/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py b/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py index a994df40a..9f6293fbe 100644 --- a/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py +++ b/src/label_studio_sdk/_extensions/label_studio_tools/core/utils/io.py @@ -116,6 +116,7 @@ def get_local_path( if is_local_storage_file: filepath = url.split("?d=")[1] filepath = safe_build_path(LOCAL_FILES_DOCUMENT_ROOT, filepath) + shutil.copy(filepath, cache_dir, follow_symlinks=True) if os.path.exists(filepath): logger.debug( f"Local Storage file path exists locally, use it as a local file: {filepath}" diff --git a/src/label_studio_sdk/converter/converter.py b/src/label_studio_sdk/converter/converter.py index 3cf0cd568..0e6cfd70a 100644 --- a/src/label_studio_sdk/converter/converter.py +++ b/src/label_studio_sdk/converter/converter.py @@ -891,7 +891,7 @@ def convert_to_yolo( else: output_label_dir = os.path.join(output_dir, "labels") os.makedirs(output_label_dir, exist_ok=True) - is_keypoints = keypoints_in_label_config(self._schema) + is_keypoints = False #keypoints_in_label_config(self._schema) if is_keypoints: # we use this attribute to add id and parentID to annotation data