Skip to content

[TEST][FLAKY] tests/python/frontend/tensorflow/test_forward.py::test_forward_combined_nms #8140

Closed

Activity

  1. masahi commented on Jun 8, 2021

    @masahi
    Member

    I was informed that there was another failure at https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-8179/6/pipeline/ which does use the new code path. I was able to get it fail after 970 trials.

  2. self-assigned this
    on Jun 8, 2021
  3. trevor-m commented on Jun 8, 2021

    @trevor-m
    Contributor

    Thanks for letting me know, I guess we can look into the NMS code which is shared by both paths?

  4. masahi commented on Jun 8, 2021

    @masahi
    Member

    I'm not sure if the two flaky ness are due to the same reason, in which case yes, we need to look at the core NMS loop. Are you sure the conversion logic in TF frontend for q != 1 case is correct?

  5. masahi commented on Jun 8, 2021

    @masahi
    Member

    The reproduction I got locally was due to a tie in scores. The top 2 scores have identical scores but the order is swapped between TF / TVM:

    Mismatched elements: 8 / 256 (3.12%)
    Max absolute difference: 1.8291236
    Max relative difference: 21.120028
     x: array([[[ 0.613913, -0.086606,  0.650708,  0.433798],
            [ 0.398791,  1.742517,  1.710477,  0.569614],
            [ 0.736459,  0.409182,  0.026915, -0.968162],...
     y: array([[[ 0.398791,  1.742517,  1.710477,  0.569614],
            [ 0.613913, -0.086606,  0.650708,  0.433798],
            [ 0.736459,  0.409182,  0.026915, -0.968162],...
    

    @trevor-m I wouldn't call it a bug, since neither TF or ONNX specifies what the order should be when there is a tie. In particular, TVM uses stable sort, while it seems TF uses unstable sort for NMS. I confirmed this based on comparing input and output box coordinates.

    Probably we should change the test code to make sure there would be no ties in scores.

  6. tqchen commented on Jun 23, 2021

    @tqchen
    Member

    normally we should construct test cases to ensure there are no ties

  7. mbrookhart commented on Jun 24, 2021

    @mbrookhart
    Contributor

    I'm seeing flakiness in this test in about 1/3 of CI jobs, it's becoming a real problem to getting other PRs merged. Should we think about disabling this test until we can resolve the flakiness?

  8. trevor-m commented on Jun 24, 2021

    @trevor-m
    Contributor

    I'm fine with disabling the test for now, sorry I haven't had a chance to look into the flakiness yet.

  9. masahi commented on Jun 29, 2021

    @masahi
    Member
  10. tqchen commented on Jul 20, 2021

    @tqchen
    Member

    @masahi please followup to see if we can close this issue

  11. masahi commented on Jul 20, 2021

    @masahi
    Member

    This can be closed in the sense that the flaky test is now disabled. But the underlying problem with combined NMS converter for q != 1 case (each class has its own box) should be addressed @trevor-m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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