facebookresearch/segment-anything

pic should be Tensor or ndarray. Got <class 'numpy.ndarray'>

chouliuzuo opened this issue · 1 comments

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?????
1719379085725