Skip to content
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

a error #4

Open
yancie-yjr opened this issue Nov 10, 2020 · 1 comment
Open

a error #4

yancie-yjr opened this issue Nov 10, 2020 · 1 comment

Comments

@yancie-yjr
Copy link

Traceback (most recent call last):
File "/home/hustget/labelme2coco/coco.py", line 11, in
labelme2coco.convert(labelme_folder, save_json_path)
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/init.py", line 14, in convert
labelme2coco(labelme_folder, save_json_path)
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 34, in init
self.save_json()
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 146, in save_json
self.data_transfer()
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 50, in data_transfer
self.annotations.append(self.annotation(points, label, num))
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 85, in annotation
annotation['bbox'] = list(map(float, self.getbbox(points)))
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 114, in getbbox
return self.mask2box(mask)
File "/media/hustget/E240392A40390737/labelme2coco/labelme2coco/labelme2coco.py", line 122, in mask2box
left_top_r = np.min(rows) # y
File "<array_function internals>", line 6, in amin
File "/home/hustget/miniconda2/envs/open-mmlab/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2831, in amin
keepdims=keepdims, initial=initial, where=where)
File "/home/hustget/miniconda2/envs/open-mmlab/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

Process finished with exit code 1

@fcakyon
Copy link

fcakyon commented Nov 23, 2020

@yancie-yjr use https://github.com/fcakyon/labelme2coco for improved version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants