I got the following error while using it.
File "/mnt/home/jwu/code/neutorch/neutorch/data/sample.py", line 159, in random_patch [0/1993]
self.transform(patch)
File "/mnt/home/jwu/code/neutorch/neutorch/data/transform.py", line 660, in __call__
transform(patch)
File "/mnt/home/jwu/code/neutorch/neutorch/data/transform.py", line 44, in __call__
patch = self.transform(patch)
File "/mnt/home/jwu/code/neutorch/neutorch/data/transform.py", line 548, in transform
patch.label[batch,channel,z,...] = self._transform2d(
File "/mnt/home/jwu/code/neutorch/neutorch/data/transform.py", line 554, in _transform2d
dst = cv2.warpPerspective(arr, M, (sy, sx), flags=interpolation)
cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'warpPerspective'
> Overload resolution failed:
> - src data type = 6 is not supported
> - Expected Ptr<cv::UMat> for argument 'src'
I got the following error while using it.