본문 바로가기
====Pytorch/Pytorch

(-215:Assertion failed) iDepth == CV_8U || iDepth == CV_8S in function

by YGspace 2021. 12. 17.

Torch.tensor to numpy img 변환 후 이미지처리시 오류 발생.

 

해결법

image1copy = np.uint8(image)

댓글