Skip to content

AssertionError in test_regularization #7697

Closed

Description

@KumoLiu

Random;y occur this error:

======================================================================
FAIL: test_cutmixd (tests.test_regularization.TestCutMix)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/MONAI/MONAI/tests/test_regularization.py", line 88, in test_cutmixd
    self.assertTrue(not torch.allclose(output["a"], output["b"]))
AssertionError: False is not true

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

Activity

  1. KumoLiu commented on Apr 23, 2024

    @KumoLiu
    ContributorAuthor

    Hi @juampatronics, could you please help take a look at the issue?
    Seems the dictionary version should also be inherit the RandomizableTransform.
    https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/regularization/dictionary.py#L38

    Thanks.

  2. juampatronics commented on Apr 23, 2024

    @juampatronics
    Contributor

    @KumoLiu yes, I'll fix it

  3. juampatronics commented on Apr 23, 2024

    @juampatronics
    Contributor
  4. added a commit that references this issue on May 29, 2024
    ac157da
  5. added a commit that references this issue on May 30, 2024
    0d7f772
  6. added a commit that references this issue on Jun 3, 2024
    08f1e57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions