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
"""Provides a generator of all Scenes and Annotations in the dataset grouped by scene.
1454
1454
1455
+
Args:
1456
+
page_size: Number of scenes to fetch per page. Default is 10.
1455
1457
1456
1458
Returns:
1457
-
Generator where each element is a nested dict (representing a JSON) structured in the following way:
1459
+
Generator where each element is a nested dict containing scene and annotation information of the dataset structured as a JSON.
1460
+
1461
+
Track grouping is slightly more complicated and is done in the following order:
1462
+
1. If track_id is defined in the annotations table, use it as the track id.
1463
+
2. If track_reference_id is defined in the metadata field of the annotations table, use it as the track id.
1464
+
3. If track_id is defined in the metadata field of the annotations table, use it as the track id.
1465
+
4. If track_id is not defined and annotation_id is defined, use annotation_id as track id.
1466
+
5. If annotation_id grouping is unsuccessful such that the annotation id is unique across all frames in the scene for all annotations, throw an error that the annotation format is incompatible.
1467
+
6. If there is no track or annotation id, throw an error that the annotation format is incompatible.
1468
+
1469
+
If you use the generator and discover that no scenes were generated, check the response error message for more information. It is likely that the annotations are not in the correct format.
0 commit comments