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

Update random_perspective transform_matrix logic #20885

Closed
wants to merge 12 commits into from

Conversation

shashaka
Copy link
Contributor

@shashaka shashaka commented Feb 9, 2025

I have modified the perspective matrix logic, replacing the random generation with a computed transformation matrix based on source and destination points.

here is my gist
transform_image
transform_bbox

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 98.11321% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.26%. Comparing base (b9a49ea) to head (34696bf).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ocessing/image_preprocessing/random_perspective.py 98.11% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20885      +/-   ##
==========================================
+ Coverage   82.24%   82.26%   +0.01%     
==========================================
  Files         561      561              
  Lines       52647    52703      +56     
  Branches     8136     8144       +8     
==========================================
+ Hits        43302    43354      +52     
- Misses       7341     7343       +2     
- Partials     2004     2006       +2     
Flag Coverage Δ
keras 82.07% <98.11%> (+0.01%) ⬆️
keras-jax 64.26% <98.11%> (+0.04%) ⬆️
keras-numpy 59.07% <98.11%> (+0.04%) ⬆️
keras-openvino 32.54% <5.66%> (+0.02%) ⬆️
keras-tensorflow 64.82% <98.11%> (-0.02%) ⬇️
keras-torch 64.32% <98.11%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants