You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
@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.
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?
Another failure from the (1, 64, 20, 4) workload despite the fix in #8335. Mismatched elements: 65 / 256 (25.4%) or Mismatched elements: 102 / 256 (39.8%) suggest that something is off @trevor-m
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
Activity
masahi commentedon Jun 8, 2021
The same error happened at https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-8126/8/pipeline
@trevor-m This is
q != 1case (each class has its own box), the new code path from https://github.com/apache/tvm/commits/main is not used.masahi commentedon Jun 8, 2021
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.
trevor-m commentedon Jun 8, 2021
Thanks for letting me know, I guess we can look into the NMS code which is shared by both paths?
masahi commentedon Jun 8, 2021
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 != 1case is correct?masahi commentedon Jun 8, 2021
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:
@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.
tqchen commentedon Jun 23, 2021
normally we should construct test cases to ensure there are no ties
mbrookhart commentedon Jun 24, 2021
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?
trevor-m commentedon Jun 24, 2021
I'm fine with disabling the test for now, sorry I haven't had a chance to look into the flakiness yet.
masahi commentedon Jun 29, 2021
Another failure from the
(1, 64, 20, 4)workload despite the fix in #8335.Mismatched elements: 65 / 256 (25.4%)orMismatched elements: 102 / 256 (39.8%)suggest that something is off @trevor-mhttps://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-8358/2/pipeline
https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-8357/1/pipeline
tqchen commentedon Jul 20, 2021
@masahi please followup to see if we can close this issue
masahi commentedon Jul 20, 2021
This can be closed in the sense that the flaky test is now disabled. But the underlying problem with combined NMS converter for
q != 1case (each class has its own box) should be addressed @trevor-m