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

Add elastic_transform processing for image.py #20977

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

shashaka
Copy link
Contributor

@shashaka shashaka commented Mar 2, 2025

I have added the elastic_transform method for NumPy, TensorFlow, Torch, and JAX. If this concept and implementation prove to be effective, I can proceed with adding the ops layer and corresponding test cases.

torchvision's elastic_transform
here is my gist

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2025

Codecov Report

Attention: Patch coverage is 6.93642% with 161 lines in your changes missing coverage. Please review.

Project coverage is 82.19%. Comparing base (0902ff4) to head (db7240b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
keras/src/backend/torch/image.py 12.00% 44 Missing ⚠️
keras/src/backend/tensorflow/image.py 4.54% 42 Missing ⚠️
keras/src/backend/numpy/image.py 5.00% 38 Missing ⚠️
keras/src/backend/jax/image.py 5.12% 37 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20977      +/-   ##
==========================================
- Coverage   82.44%   82.19%   -0.25%     
==========================================
  Files         561      561              
  Lines       53217    53388     +171     
  Branches     8244     8273      +29     
==========================================
+ Hits        43874    43884      +10     
- Misses       7336     7497     +161     
  Partials     2007     2007              
Flag Coverage Δ
keras 82.01% <6.93%> (-0.25%) ⬇️
keras-jax 63.83% <5.78%> (-0.19%) ⬇️
keras-numpy 58.67% <6.93%> (-0.17%) ⬇️
keras-openvino 32.54% <2.31%> (-0.10%) ⬇️
keras-tensorflow 64.27% <5.78%> (-0.19%) ⬇️
keras-torch 63.88% <5.78%> (-0.20%) ⬇️

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.

images,
alpha=20.0,
sigma=5.0,
interpolation="bilinear",
Copy link
Collaborator

Choose a reason for hiding this comment

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

No fill_mode argument?

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.

4 participants