Open spaced opened 7 months ago
Hi @spaced, if you add reproduction steps we will be able to diagnose 🙏
I am experiencing this same issue as well. I loaded a detection dataset from a file, called annotate
with classes=dataset.get_classes("gt_bounding_boxes") + ["small_blurry"]
(the only difference from when I last did this), labeled 500 images in labels studio, and then called load_annotations
.
Same error here...
I created an annotation job for CVAT from fiftyone. Calling load_annotations
from there shows this error
---------------------------------------------------------------------------
BulkWriteError Traceback (most recent call last)
File venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:807, in bulk_write(ops, coll, ordered, progress)
[806](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:806) batch = list(batch)
--> [807](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:807) coll.bulk_write(batch, ordered=ordered)
[808](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:808) if batcher.manual_backpressure:
[809](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:809) # @todo can we infer content size from bulk_write() above?
[810](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:810) # @todo do we need a more accurate measure of size here?
File venv/lib/python3.9/site-packages/pymongo/_csot.py:107, in apply.<locals>.csot_wrapper(self, *args, **kwargs)
[106](/venv/lib/python3.9/site-packages/pymongo/_csot.py:106) return func(self, *args, **kwargs)
--> [107](/venv/lib/python3.9/site-packages/pymongo/_csot.py:107) return func(self, *args, **kwargs)
File venv/lib/python3.9/site-packages/pymongo/collection.py:569, in Collection.bulk_write(self, requests, ordered, bypass_document_validation, session, comment, let)
[568](/venv/lib/python3.9/site-packages/pymongo/collection.py:568) write_concern = self._write_concern_for(session)
--> [569](/venv/lib/python3.9/site-packages/pymongo/collection.py:569) bulk_api_result = blk.execute(write_concern, session)
[570](/venv/lib/python3.9/site-packages/pymongo/collection.py:570) if bulk_api_result is not None:
File venv/lib/python3.9/site-packages/pymongo/bulk.py:576, in _Bulk.execute(self, write_concern, session)
[575](/venv/lib/python3.9/site-packages/pymongo/bulk.py:575) else:
--> [576](/venv/lib/python3.9/site-packages/pymongo/bulk.py:576) return self.execute_command(generator, write_concern, session)
File venv/lib/python3.9/site-packages/pymongo/bulk.py:446, in _Bulk.execute_command(self, generator, write_concern, session)
[445](/venv/lib/python3.9/site-packages/pymongo/bulk.py:445) if full_result["writeErrors"] or full_result["writeConcernErrors"]:
--> [446](/venv/lib/python3.9/site-packages/pymongo/bulk.py:446) _raise_bulk_write_error(full_result)
...
[814](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:814) except BulkWriteError as bwe:
[815](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:815) msg = bwe.details["writeErrors"][0]["errmsg"]
--> [816](/venv/lib/python3.9/site-packages/fiftyone/core/odm/database.py:816) raise ValueError(msg) from bwe
ValueError: Cannot apply $pull to a non-array value
Describe the problem
load annotations results in an exception
Code to reproduce issue
System information
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the FiftyOne codebase?