Skip to content

Perspective2D augmentation is not working #21

@xiuliren

Description

@xiuliren

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions