[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped frame_resolution_wh from [PolygonZone] #1109

Merged
merged 9 commits into from
Apr 12, 2024

Conversation

jeslinpjames
Copy link
Contributor

Description

Issue #1101

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

Here is the Colab link with the changes made to the PolygonZone Class.

Any specific deployment considerations

For example, documentation changes, usability, usage/costs, secrets, etc.

Docs

  • Docs updated? What were the changes:
  • Removed frame_resolution_wh from the documentation.

@jeslinpjames
Copy link
Contributor Author

Many examples in the repository still pass frame_resolution_wh as a parameter when using PolygonZone. Considering its deprecation, shall we update these examples for consistency? I'm happy to proceed with the changes if deemed appropriate.

@onuralpszr
Copy link
Collaborator

Many examples in the repository still pass frame_resolution_wh as a parameter when using PolygonZone. Considering its deprecation, shall we update these examples for consistency? I'm happy to proceed with the changes if deemed appropriate.

Let's fix the test errors first.

@jeslinpjames
Copy link
Contributor Author

Hi @onuralpszr,

I handle the initial test error but there are still failures in the pytest suite. After investigating the failures, I found that the frame_resolution_wh parameter, used for clipping bounding boxes in the trigger function, leads to errors as it expects the resolution of the video. The clipped_xyxy calculation within the trigger function clips the bounding boxes within the polygon, resulting in incorrect anchor point detection. This discrepancy causes test failures as shown in the traceback.

So, how should we proceed?

@SkalskiP
Copy link
Collaborator

Hi @jeslinpjames and @onuralpszr, I just fixed the tests. We are ready to merge!

@SkalskiP SkalskiP merged commit f9ed80f into roboflow:develop Apr 12, 2024
9 checks passed
@jeslinpjames
Copy link
Contributor Author

Many examples in the repository still pass frame_resolution_wh as a parameter when using PolygonZone. Considering its deprecation, shall we update these examples for consistency? I'm happy to proceed with the changes if deemed appropriate.

Hey @SkalskiP, should I put another PR with the examples changed?

@onuralpszr
Copy link
Collaborator

Many examples in the repository still pass frame_resolution_wh as a parameter when using PolygonZone. Considering its deprecation, shall we update these examples for consistency? I'm happy to proceed with the changes if deemed appropriate.

Hey @SkalskiP, should I put another PR with the examples changed?

Please do so :)

@onuralpszr
Copy link
Collaborator
onuralpszr commented Apr 12, 2024

But please test examples and their behavior as well. If dropping creates side effects, it would be nice to know it

@jeslinpjames
Copy link
Contributor Author

But please test examples and their behavior as well. If dropping creates side effects, it would be nice to know it

Will do.

@SkalskiP
Copy link
Collaborator

@jeslinpjames yup, please open second PR with changed examples. I fixed one bug when I fixed tests. So I don't expect behavior problems. But test anyway:)

@jeslinpjames
Copy link
Contributor Author

@jeslinpjames yup, please open second PR with changed examples. I fixed one bug when I fixed tests. So I don't expect behavior problems. But test anyway:)

Hey, I tested out a couple of examples, and everything looks good. I'll put another PR soon.

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.

None yet

3 participants