[Debian-pan-maintainers] Bug#1069224: nabu: FTBFS: AssertionError: OpenclUnsharpMask: max error is too high with method
Andrius Merkys
merkys at debian.org
Thu Apr 18 07:26:31 BST 2024
Source: nabu
Version: 2023.1.1-3
Severity: serious
Tags: ftbfs
Hello,
nabu FTBFS in sid on amd64:
====================================================================================================
FAILURES
=====================================================================================================
__________________________________________________________________________________________
TestUnsharp.testOpenclUnsharp
__________________________________________________________________________________________
self = <nabu.misc.tests.test_unsharp.TestUnsharp object at 0x7f62be9990a0>
@pytest.mark.skipif(not (__has_pyopencl__), reason="Need pyopencl
for this test")
def testOpenclUnsharp(self):
cl_queue = CommandQueue(self.cl_ctx)
d_image = parray.to_device(cl_queue, self.data)
d_out = parray.zeros_like(d_image)
for method in OpenclUnsharpMask.avail_methods:
d_image = parray.to_device(cl_queue, self.data)
d_out = parray.zeros_like(d_image)
opencl_unsharp = OpenclUnsharpMask(self.data.shape,
self.sigma, self.coeff, method=method, ctx=self.cl_ctx)
opencl_unsharp.unsharp(d_image, output=d_out)
res = d_out.get()
> self.check_result(res, method,
error_msg_prefix="OpenclUnsharpMask")
nabu/misc/tests/test_unsharp.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nabu.misc.tests.test_unsharp.TestUnsharp object at 0x7f62be9990a0>
result = array([[ 82.38305 , 82.57701 , 82.776085, ..., 116.99998 ,
116.99998 ,
116.99998 ],
[ 82.23501 , 82.....112217],
[177.92279 , 177.92285 , 177.92336 , ..., 36. , 57. ,
57. ]], dtype=float32)
method = 'log', data = None, error_msg_prefix = 'OpenclUnsharpMask'
def check_result(self, result, method, data=None,
error_msg_prefix=None):
reference = self.get_reference_result(method, data=data)
mae = np.max(np.abs(result - reference))
err_msg = str(
"%s: max error is too high with method=%s: %.2e > %.2e" %
(error_msg_prefix or "", method, mae, self.tol)
)
> assert mae < self.tol, err_msg
E AssertionError: OpenclUnsharpMask: max error is too high with
method=log: 2.33e+02 > 1.00e-04
E assert 232.60403 < 0.0001
E + where 0.0001 = <nabu.misc.tests.test_unsharp.TestUnsharp
object at 0x7f62be9990a0>.tol
nabu/misc/tests/test_unsharp.py:47: AssertionError
More information about the Debian-pan-maintainers
mailing list