You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raceback (most recent call last):
File "/data/tools/1.py", line 330, in
labelme2coco(labelme_json,save_image_dir, coco_dir)
File "/data/tools/1.py", line 44, in init
self.save_json()
File "/data/tools/1.py", line 182, in save_json
self.data_transfer()
File "/data/tools/1.py", line 67, in data_transfer
self.annotations.append(self.annotation(points,label,num))
File "/data/tools/1.py", line 122, in annotation
annotation['bbox'] = list(map(float,self.getbbox(points)))
File "/data/tools/1.py", line 144, in getbbox
return self.mask2box(mask)
File "/data/tools/1.py", line 153, in mask2box
left_top_r = np.min(rows) # y
File "/home/anaconda3/envs/snake/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2618, in amin
initial=initial)
File "/home/anaconda3/envs/snake/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
The text was updated successfully, but these errors were encountered:
raceback (most recent call last):
File "/data/tools/1.py", line 330, in
labelme2coco(labelme_json,save_image_dir, coco_dir)
File "/data/tools/1.py", line 44, in init
self.save_json()
File "/data/tools/1.py", line 182, in save_json
self.data_transfer()
File "/data/tools/1.py", line 67, in data_transfer
self.annotations.append(self.annotation(points,label,num))
File "/data/tools/1.py", line 122, in annotation
annotation['bbox'] = list(map(float,self.getbbox(points)))
File "/data/tools/1.py", line 144, in getbbox
return self.mask2box(mask)
File "/data/tools/1.py", line 153, in mask2box
left_top_r = np.min(rows) # y
File "/home/anaconda3/envs/snake/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2618, in amin
initial=initial)
File "/home/anaconda3/envs/snake/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
The text was updated successfully, but these errors were encountered: