Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test error -- test_gaussian_filter #2821

Closed
wyli opened this issue Aug 23, 2021 · 0 comments
Closed

unit test error -- test_gaussian_filter #2821

wyli opened this issue Aug 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@wyli
Copy link
Contributor

wyli commented Aug 23, 2021

Describe the bug

======================================================================
FAIL: test_train_quick_5 (tests.test_gaussian_filter.TestGaussianFilterBackprop)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/parameterized/parameterized.py", line 533, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_gaussian_filter.py", line 89, in test_train_quick
    self.code_to_run(input_args)
  File "/home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_gaussian_filter.py", line 84, in code_to_run
    s.cpu().item(), gt.cpu() if len(gt.shape) == 0 else gt[idx].cpu().item(), rtol=1e-2
  File "/opt/conda/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 1533, in assert_allclose
    verbose=verbose, header=header, equal_nan=equal_nan)
  File "/opt/conda/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 846, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=0.01, atol=0

Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.18121517
Max relative difference: 0.36243033
 x: array(0.681215)
 y: array(0.5, dtype=float32)

----------------------------------------------------------------------

To Reproduce
this error happens once in ~50 runs

saw this error with the following env and the latest codebase c39f6fa

Numpy version: 1.18.5
Pytorch version: 1.6.0a0+9907a3e
MONAI flags: HAS_EXT = False, USE_COMPILED = False
MONAI rev id: None

Optional dependencies:
Pytorch Ignite version: 0.4.5
Nibabel version: 3.2.1
scikit-image version: 0.15.0
Pillow version: 8.3.1
Tensorboard version: 1.15.0+nv
gdown version: 3.13.0
TorchVision version: 0.7.0a0
tqdm version: 4.62.2
lmdb version: 0.98
psutil version: 5.7.0
pandas version: 0.24.2
einops version: 0.3.0

PT16+CUDA110
Expected behavior
no error

@wyli wyli added the bug Something isn't working label Aug 23, 2021
wyli added a commit that referenced this issue Aug 26, 2021
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli closed this as completed in 1065dad Aug 26, 2021
wyli added a commit to Borda/MONAI that referenced this issue Aug 27, 2021
* resume github premerge tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes Project-MONAI#2821

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update group names

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant