Skip to content

Conversation

@Sai-Suraj-27
Copy link
Contributor

What does this PR do?

Fixes failing Owlv2ModelIntegrationTest & OwlViTModelIntegrationTest

image

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@vasqu

@vasqu
Copy link
Contributor

vasqu commented Jan 9, 2026

run-slow: owlv2, owlvit

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

This comment contains run-slow, running the specified jobs:

models: ["models/owlv2", "models/owlvit"]
quantizations: []

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

CI Results

Workflow Run ⚙️

✅ No failing test specific to this PR 🎉 !

Copy link
Contributor

@vasqu vasqu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, base owlvit might need bigger tols again? Seeing it failing with slightly higher diffs there

@Sai-Suraj-27 Sai-Suraj-27 force-pushed the fix_owlvit_and_owlv2_tests branch from fdc869c to 10733e6 Compare January 9, 2026 14:15
@Sai-Suraj-27
Copy link
Contributor Author

LGTM, base owlvit might need bigger tols again? Seeing it failing with slightly higher diffs there

Yes, Updated the PR. Thanks for the review!

@vasqu
Copy link
Contributor

vasqu commented Jan 9, 2026

run-slow: owlvit

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

This comment contains run-slow, running the specified jobs:

models: ["models/owlvit"]
quantizations: []

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

CI Results

Workflow Run ⚙️

✅ No failing test specific to this PR 🎉 !

[[0.0680, 0.0422, 0.1347], [0.2071, 0.0450, 0.4146], [0.2000, 0.0418, 0.3476]]
).to(torch_device)
torch.testing.assert_close(outputs.pred_boxes[0, :3, :3], expected_slice_boxes, rtol=1e-4, atol=1e-4)
torch.testing.assert_close(outputs.pred_boxes[0, :3, :3], expected_slice_boxes, rtol=1e-2, atol=1e-2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tolerance is a bit too high, do we really

  • need to change that many
  • have this high tol, i.e. is 1e-3 maybe enough instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have this high tol, i.e. is 1e-3 maybe enough instead

Yes, I thought of setting it to 1e-3 but the tests are failing with a difference of 0.004, ~0.002. So, went with 1e-2.

need to change that many

All tests are passing for me locally. So, i am not able to reproduce the failures (No A10 GPU 😅). So, I've made the change for all asserts among the failing tests. But yeah ideally i think some of them can be kept at 1e-3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I will update the values in this PR myself then. Probably next week tho

Running on a10, rather keep correct values than update tols arbitrarily high

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, updated the values just now

cc @ydshieh if this is ok, the values only differ slightly, seems to be a GPU diff

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

[For maintainers] Suggested jobs to run (before merge)

run-slow: owlv2, owlvit

@vasqu
Copy link
Contributor

vasqu commented Jan 9, 2026

run-slow: owlv2, owlvit

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

This comment contains run-slow, running the specified jobs:

models: ["models/owlv2", "models/owlvit"]
quantizations: []

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

CI Results

Workflow Run ⚙️

✅ No failing test specific to this PR 🎉 !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants