We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f75ad commit 54833ccCopy full SHA for 54833cc
src/datumaro/components/operations.py
@@ -226,6 +226,12 @@ def _extractor_stats(subset_name):
226
227
228
def compute_ann_statistics(dataset: IDataset):
229
+ warnings.warn(
230
+ "We are planning to change the type of stats['annotations']['labels']['distribution'] "
231
+ "and stats['annotations']['segments']['pixel distribution'] from `list` to `(named) tuple`. "
232
+ "If you are checking the types in your code, please revisit it after upgrading datumaro>=2.0.0.",
233
+ FutureWarning,
234
+ )
235
labels: LabelCategories = dataset.categories().get(AnnotationType.label, LabelCategories())
236
237
def get_label(ann):
0 commit comments