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 0f60098 commit baa7fe0Copy full SHA for baa7fe0
tensorflow_datasets/core/features/bounding_boxes.py
@@ -88,7 +88,7 @@ def encode_example(self, bbox: Union[bb_utils.BBox, np.ndarray]):
88
89
# Validate the coordinates
90
for coordinate in bbox:
91
- if not isinstance(coordinate, float):
+ if not isinstance(coordinate, (float, np.floating)):
92
raise ValueError(
93
'BBox coordinates should be float. Got {}.'.format(bbox)
94
)
0 commit comments