segment-anything
segment-anything copied to clipboard
pic should be Tensor or ndarray. Got <class 'numpy.ndarray'>
I followed the ReadMe.md step by step, but the image read by cv2.imread
cannot work in mask_generator.generate
It raised a TypeError: pic should be Tensor or ndarray. Got <class 'numpy.ndarray'>
, why <class 'numpy.ndarray'>
is not ndarray
?????