Skip to content

test_mmar_download error model updated #4001

@wyli

Description

@wyli

Describe the bug

03:02:36  ======================================================================
03:02:36  ERROR: test_load_ckpt_2 (tests.test_mmar_download.TestMMMARDownload)
03:02:36  ----------------------------------------------------------------------
03:02:36  Traceback (most recent call last):
03:02:36    File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
03:02:36      return func(*(a + p.args), **p.kwargs)
03:02:36    File "/opt/monai/tests/test_mmar_download.py", line 118, in test_load_ckpt
03:02:36      output = load_from_mmar(**input_args)
03:02:36    File "/opt/monai/monai/apps/mmars/mmars.py", line 258, in load_from_mmar
03:02:36      raise ValueError(
03:02:36  ValueError: Could not load model config dictionary from config: None, or from model file: None.
03:02:36  
03:02:36  ======================================================================
03:02:36  FAIL: test_load_ckpt_1 (tests.test_mmar_download.TestMMMARDownload)
03:02:36  ----------------------------------------------------------------------
03:02:36  Traceback (most recent call last):
03:02:36    File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
03:02:36      return func(*(a + p.args), **p.kwargs)
03:02:36    File "/opt/monai/tests/test_mmar_download.py", line 121, in test_load_ckpt
03:02:36      np.testing.assert_allclose(x[0][0].detach().cpu().numpy(), expected_val, rtol=1e-3, atol=1e-3)
03:02:36    File "/opt/conda/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 1530, in assert_allclose
03:02:36      assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
03:02:36    File "/opt/conda/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
03:02:36      raise AssertionError(msg)
03:02:36  AssertionError: 
03:02:36  Not equal to tolerance rtol=0.001, atol=0.001
03:02:36  
03:02:36  Mismatched elements: 27 / 27 (100%)
03:02:36  Max absolute difference: 0.41368527
03:02:36  Max relative difference: 8.84382354
03:02:36   x: array([[[ 0.016711,  0.085024, -0.176647],
03:02:36          [-0.130397, -0.061378,  0.039249],
03:02:36          [ 0.022683,  0.159056, -0.034851]],...
03:02:36   y: array([[[-0.211471,  0.108151, -0.04734 ],
03:02:36          [-0.342555,  0.033046,  0.113512],
03:02:36          [ 0.127881,  0.262989, -0.058301]],...
03:02:36  
03:02:36  ----------------------------------------------------------------------

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions