-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSD: exception during conversion of dataset to COCO format #654
Comments
Thanks @ukurkure . Taking a look. |
fixes issue mlcommons#654
This is happening because the fiftyone package wasn't pinned in the requirements file, and it seems that the API has changed since the reference was written. #675 should fix the issue |
@nv-rborkar we can close the bug after the fix above. |
@ukurkure please close the issue if Ahmad's fix above resolved your issue. |
hi, i face this problem these day have you finish this problem now? thank you!! |
Dataset 'open-images' created
Converting dataset to coco format ...
0% 0/1170301 [12.4ms elapsed, ? remaining, ? samples/s]
Traceback (most recent call last):
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/document.py", line 160, in get_field
value = self._doc.get_field(field_name)
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/odm/mixins.py", line 122, in get_field
raise AttributeError(
AttributeError: Sample has no field 'detections'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/document.py", line 68, in getitem
return self.get_field(field_name)
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/sample.py", line 99, in get_field
return super().get_field(field_name)
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/document.py", line 739, in get_field
value = super().get_field(field_name)
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/document.py", line 162, in get_field
raise AttributeError(
AttributeError: SampleView has no field 'detections'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fiftyone_openimages.py", line 50, in
split_view.export(
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/collections.py", line 8076, in export
_export(
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/collections.py", line 10580, in _export
foud.export_samples(
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/utils/data/exporters.py", line 356, in export_samples
write_dataset(
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/utils/data/exporters.py", line 416, in write_dataset
_write_image_dataset(
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/utils/data/exporters.py", line 893, in _write_image_dataset
label = sample_parser.get_label()
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/utils/data/parsers.py", line 1666, in get_label
label = sample[label_field]
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/sample.py", line 60, in getitem
return super().getitem(field_name)
File "/home/ml/.local/lib/python3.8/site-packages/fiftyone/core/document.py", line 70, in getitem
raise KeyError(e.args[0])
KeyError: "SampleView has no field 'detections'"
The text was updated successfully, but these errors were encountered: