houqb / dss_crf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have erro!

HHIR opened this issue · comments

commented

Respectfully, I have this error, I will be happy if you help me to fix it. thanks.

python dense_hsal.py im1.png anno1.png out1.png
Traceback (most recent call last):
File "dense_hsal.py", line 27, in
labels = relabel_sequential(cv2.imread(sys.argv[2], 0))[0].flatten()
File "/usr/local/lib/python2.7/dist-packages/skimage/segmentation/_join.py", line 123, in relabel_sequential
forward_map[labels0] = np.arange(offset, offset + len(labels0) + 1)
ValueError: shape mismatch: value array of shape (3,) could not be broadcast to indexing result of shape (2,)