ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

Output mismatch in Warp affine kernel

Open manjunathahg opened this issue 8 years ago • 1 comments

Output of 'strings libarm_compute.so | grep arm_compute_version': arm_compute_version.embed

Platform: ACL NEON

Operating System: Linux 64 bit

Problem description: Hi Sir We are trying to execute Warp affine kernel in arm compute library on ACL NEON platform and facing below mentioned problems: a) Output does not match with reference(C model) in case of undefined border mode and Bilinear interpolation combination b) Output doest not match with reference(C model) in case of dimension 16x16 or lesser than that with undefined border mode and nearest neighbour interpolation type. Attaching the sample workspace and logs for reference.

Please let us know your inputs in resolving the issue. Thanks in advance

neon_warpaffine_test .txt warpaffine_log.txt warpAffine_ref_output.txt

manjunathahg avatar Jun 28 '18 11:06 manjunathahg

Hi @manjunathahg

It's ok to expect mismatches between openvx reference implementation and ACL when using border mode undefined. Openvx reference implementation doesn't change the value of the output buffer in this case (because the pixels are not valid) and ACL would write 0.

warpundefined

Quoting the VX 1.2 spec:

Valid Pixels - All output pixels of an OpenVX function are considered valid by default, unless their calculation depends on input pixels that are not valid. An input pixel is not valid in one of two situations: The pixel is outside of the image border and the border mode in use is VX_BORDER_UNDEFINED The pixel is outside the valid region of the input image.

morgolock avatar Aug 13 '18 12:08 morgolock