You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you would like to create a new dataset object with classification type annotations, please pass empty points and value of the annotation named 'classification'.
2537
+
2538
+
```python
2539
+
dataset_object = client.create_dataset_object(
2540
+
dataset="YOUR_DATASET_NAME",
2541
+
name="brushwood_dog.jpg",
2542
+
file_path="./brushwood_dog.jpg",
2543
+
tags=["dog"], # max 5 tags per dataset object.
2544
+
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
2545
+
annotations=[
2546
+
{
2547
+
"type": "classification",
2548
+
"value": "classification",
2549
+
"points": [],
2550
+
"attributes": [
2551
+
{
2552
+
"type": "text",
2553
+
"value": "Scottish field",
2554
+
"key": "kind"
2555
+
}
2556
+
]
2557
+
}
2558
+
]
2559
+
)
2560
+
```
2561
+
2536
2562
#### Response Dataset Object
2537
2563
2538
2564
See API docs for details.
@@ -2592,32 +2618,6 @@ See API docs for details.
2592
2618
}
2593
2619
```
2594
2620
2595
-
If you would like to create with classification type annotations, please pass empty points and value of the annotation named 'classification'.
2596
-
2597
-
```python
2598
-
dataset_object = client.create_dataset_object(
2599
-
dataset="YOUR_DATASET_NAME",
2600
-
name="brushwood_dog.jpg",
2601
-
file_path="./brushwood_dog.jpg",
2602
-
tags=["dog"], # max 5 tags per dataset object.
2603
-
licenses=["MIT", "my-license"], # max 10 licenses per dataset object
0 commit comments