image-labelling-tool icon indicating copy to clipboard operation
image-labelling-tool copied to clipboard

ValueError: Buffer dtype mismatch, expected 'double' but got 'float'

Open Arghya999 opened this issue 4 years ago • 0 comments

Thanks for the commendable work.

I am trying to annotate invasive cancer patches(png) using :-

python image-labelling-tool/flask_app.py --image_dir image-labelling-tool/examples/simple/invasive_images --label_names image-labelling-tool/examples/simple/label_names_example.yml --file_ext png --slic

getting the below error as output :-

Segmenting image-labelling-tool/examples/simple/invasive_images/22207_invasive_image_17_invasive.png Traceback (most recent call last): File "image-labelling-tool/flask_app.py", line 75, in slic_labels = slic(img, 1500, slic_zero=True) + 1 File "/usr/local/lib/python3.6/dist-packages/skimage/segmentation/slic_superpixels.py", line 172, in slic labels = _slic_cython(image, segments, step, max_iter, spacing, slic_zero) File "skimage/segmentation/_slic.pyx", line 13, in skimage.segmentation._slic._slic_cython ValueError: Buffer dtype mismatch, expected 'double' but got 'float'

attaching an image as an example. 22207_invasive_image_3_invasive

Arghya999 avatar Apr 03 '20 09:04 Arghya999