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
Copy file name to clipboardExpand all lines: luxonis_ml/data/datasets/README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,22 @@ The `push_to_cloud()` method is used to upload a local dataset to the specified
99
99
|`update_mode`|`UpdateMode`|`UpdateMode.MISSING`| Whether to always push (overwrite) the dataset’s media folder to the cloud or only upload missing files. |
100
100
|`bucket_storage`|`BucketStorage`| Required | The cloud storage destination to which local media files should be uploaded (e.g., GCS, S3, Azure). |
101
101
102
+
### Setting Class Order per Task
103
+
104
+
The `set_class_order_per_task()` method allows you to define a specific ordering of classes for one or more tasks, without rewriting the dataset’s metadata.
|`class_order_per_task`|`dict[str, list[str]]`| Required | Mapping of task names to ordered lists of class names. Class names must exactly match the dataset’s classes. |
111
+
112
+
#### Persistence & Usage Notes
113
+
114
+
-**View-only ordering**: This method does *not* rewrite the dataset’s stored metadata (since `rewrite_metadata=False`). Instead, it applies the new class order as a view on the dataset object.
115
+
-**New classes**: If new classes are added to the dataset, you must call `set_class_order_per_task()` again to include and order them.
116
+
-**Loader initialization**: For `LuxonisLoader`, apply class ordering *before* passing the dataset into the loader to avoid unintended reordering during loader setup.
117
+
102
118
## In-Depth Explanation of luxonis-ml Dataset Storage
0 commit comments