We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7f7f5 commit b4dde95Copy full SHA for b4dde95
labelbox/data/serialization/coco/converter.py
@@ -1,11 +1,16 @@
1
from typing import Dict, Any, Union
2
-from pathlib import Path
+from pathlib import Path, PosixPath, WindowsPath
3
import os
4
5
+import pydantic.json
6
+
7
from labelbox.data.annotation_types.collection import LabelCollection, LabelGenerator
8
from labelbox.data.serialization.coco.instance_dataset import CocoInstanceDataset
9
from labelbox.data.serialization.coco.panoptic_dataset import CocoPanopticDataset
10
11
+pydantic.json.ENCODERS_BY_TYPE[PosixPath] = str
12
+pydantic.json.ENCODERS_BY_TYPE[WindowsPath] = str
13
14
15
def create_path_if_not_exists(path: Union[Path, str],
16
ignore_existing_data=False):
0 commit comments