We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kornia.enhance.jpeg_codec_differentiable() requires input positional argument while there is no such argument in function
kornia.enhance.jpeg_codec_differentiable()
input
I know that it is because of @perform_keep_shape_image decorator, but this behaviour is not normal
@perform_keep_shape_image
And yes, it is working if I change image_rgb=a to input=a
image_rgb=a
input=a
1. pip install git+https://github.com/kornia/kornia 2. import torch import kornia a = torch.rand(4, 3, 112, 112) kornia.enhance.jpeg_codec_differentiable( image_rgb=a, jpeg_quality=torch.full([a.shape[0]], 15)) 3. TypeError: jpeg_codec_differentiable() missing 1 required positional argument: 'input'
Expected behaviour is to have ability of using named arguments in function
I think it does not matter in this case
No response
The text was updated successfully, but these errors were encountered:
this seems an issue related to the decorator perform_keep_shape_image cc @edgarriba @ChristophReich1996
perform_keep_shape_image
kornia/kornia/utils/image.py
Line 214 in d6e1485
Sorry, something went wrong.
Ideally we rename to input and more ideally as a meta task we standardise that across the library /cc @johnnv1
No branches or pull requests
Describe the bug
kornia.enhance.jpeg_codec_differentiable()
requiresinput
positional argument while there is no such argument in functionI know that it is because of
@perform_keep_shape_image
decorator, but this behaviour is not normalAnd yes, it is working if I change
image_rgb=a
toinput=a
Reproduction steps
Expected behavior
Expected behaviour is to have ability of using named arguments in function
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: