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

Custom image transformation? #159

Closed
arbenede opened this issue Jul 31, 2022 · 4 comments
Closed

Custom image transformation? #159

arbenede opened this issue Jul 31, 2022 · 4 comments

Comments

@arbenede
Copy link

Are there any plans to add support for custom image image transformations?

@arbenede
Copy link
Author

My goal is to create a custom image warp function that I can differentiate with respect to its parameters using Zygote and your other Julia package https://github.com/FluxML/DiffImages.jl. So it's not clear to me how to proceed. Should I first extend ImageTransformation.jl then add some new code to DiffImages.jl? If you have some advice I would appreciate to hear from you... By the way I opened an issue at https://github.com/FluxML/DiffImages.jl since the link to the documentation is broken.

@johnnychen94
Copy link
Member

It should work out of the box if you're using the warp and Interpolations. The src/geometry/adjoints.jl file has added the needed rules for it. But if you're using more than that, a custom rule for some functions (which is unknown until error shows) is needed.

DiffImages was GSoC-21 project and it is still a WIP, so feel free to fork it and add whatever you need, and when you get satisfied you're welcome to submit a PR. By then we can discuss where to put the codes -- for experimental purpose, you can have everything in DiffImages.

@arbenede
Copy link
Author

arbenede commented Aug 1, 2022

Thank you!

@arbenede arbenede closed this as completed Aug 1, 2022
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

No branches or pull requests

2 participants