coco-annotator icon indicating copy to clipboard operation
coco-annotator copied to clipboard

Exporte half-way work

Open dawei22 opened this issue 5 years ago • 3 comments

Hi!

When i want to export (Export COCO button or Download COCO) labels but i haven't finished labelling all images, an error raise and task get stucked :

annotator_workers | [2020-06-10 02:03:41,981: ERROR/ForkPoolWorker-8] Task workers.tasks.data.export_annotations[44aa693a-21a2-4b5a-8bfc-df1b89126d3d] raised unexpected: TypeError("'>' not supported between instances of 'numpy.ndarray' and 'int'",)
annotator_workers | Traceback (most recent call last):
annotator_workers |   File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task
annotator_workers |     R = retval = fun(*args, **kwargs)
annotator_workers |   File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__
annotator_workers |     return self.run(*args, **kwargs)
annotator_workers |   File "/workspace/workers/tasks/data.py", line 102, in export_annotations
annotator_workers |     annotation['num_keypoints'] = len(arr[arr > 0])
annotator_workers | TypeError: '>' not supported between instances of 'numpy.ndarray' and 'int'

image

If i download one per one it's okay.

Is not possible download labels until i finished everything?

dawei22 avatar Jun 10 '20 02:06 dawei22

Seems to be an error in the export process

jsbroks avatar Aug 07 '20 18:08 jsbroks

Hello, I am still facing the same issue, export stops midway due to the same error and starts missing heartbeats when trying to annotate keypoints.

kesaroid avatar Sep 26 '22 13:09 kesaroid

Hello, I am still facing the same issue, export stops midway due to the same error and starts missing heartbeats when trying to annotate keypoints.

hello, Did you manage to solve this problem later on?

Cornflowerzbq avatar Jun 19 '24 13:06 Cornflowerzbq