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

Local laplacian gradient does not work #8393

Open
mshafiei opened this issue Aug 20, 2024 · 2 comments
Open

Local laplacian gradient does not work #8393

mshafiei opened this issue Aug 20, 2024 · 2 comments

Comments

@mshafiei
Copy link

Hi,

I'm trying to get the gradient of local laplacian generator. When I add GRADIENT_DESCENT_OPT "GRADIENT_DESCENT" to python_bindings/apps/CMakeLists.txt:48 the local laplacian app breaks. The output image turns out to be pitch black. Also the gradient image is black (you need to add an additional buffer as the last parameter list of the generator in the local_laplacian_app.py). Is there any workaround for this issue?

@abadams
Copy link
Member

abadams commented Aug 21, 2024

Sounds like something is broken, but before investigating I wanted to point out that the gradient w.r.t. the input image is going to be zero for that algorithm anyway, because it starts with a nearest-neighbor-sampled lookup table.

@mshafiei
Copy link
Author

I'm actually interested in the derivative w.r.t. alpha. I think that doesn't rely on the nearest neighbor look up. Is that correct?
I also tried gradient on other generators e.g. blur, bilateral grid but none of them seem to work.

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