sudecki30 / labels

Labels image/picture for deeplearning
GNU General Public License v3.0
1 stars 0 forks source link

can't iterate #1

Open Love-Studyyy opened 3 years ago

Love-Studyyy commented 3 years ago

Hi, can you help me please?

multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "D:\Segment\envs\trans\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "d:\labels-master\png_to_json.py", line 149, in image_to_json segmentations,areas,bboxs = create_sub_mask_annotation(mask, image_id, category_id, annotation_id, is_crowd) File "d:\labels-master\png_to_json.py", line 53, in create_sub_mask_annotation contour = np.vstack(contour).squeeze() File "<__array_function__ internals>", line 6, in vstack TypeError: dispatcher for __array_function__ did not return an iterable """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "d:/labels-master/png_tojson.py", line 251, in for in tqdm.tqdm(pool.imap( image_to_json_partial, range(l)), total=l): File "D:\Segment\envs\trans\lib\site-packages\tqdm\std.py", line 1178, in iter for obj in iterable: File "D:\Segment\envs\trans\lib\multiprocessing\pool.py", line 736, in next raise value TypeError: dispatcher for __array_function__ did not return an iterable

-----How can I solve it?

sudecki30 commented 3 years ago

Hi, I have correct the code to work with actual package version

Love-Studyyy commented 3 years ago

It is successful!!!!!!!!! My gratitude to you for all you have done!!!!!!!!!