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

Error while calling labelme2coco function #5

Open
sreshu opened this issue Jul 28, 2021 · 0 comments
Open

Error while calling labelme2coco function #5

sreshu opened this issue Jul 28, 2021 · 0 comments

Comments

@sreshu
Copy link

sreshu commented Jul 28, 2021

Traceback (most recent call last):
File "", line 1, in
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/init.py", line 14, in convert
labelme2coco(labelme_folder, save_json_path)
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 34, in init
self.save_json()
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 145, in save_json
self.data_transfer()
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 50, in data_transfer
self.annotations.append(self.annotation(points, label, num))
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 84, in annotation
annotation['bbox'] = list(map(float, self.getbbox(points)))
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 112, in getbbox
mask = self.polygons_to_mask([self.height, self.width], polygons)
File "/home/reshu/Downloads/labelme2coco-0.1.2/labelme2coco/labelme2coco.py", line 134, in polygons_to_mask
mask = np.array(mask, dtype=bool)
TypeError: array() takes 1 positional argument but 2 were given

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

1 participant