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

Error in Visualization part #5

Open
Sakshi-Sagar673 opened this issue Sep 26, 2022 · 1 comment
Open

Error in Visualization part #5

Sakshi-Sagar673 opened this issue Sep 26, 2022 · 1 comment

Comments

@Sakshi-Sagar673
Copy link

For visualising coefficient map(.npy file) , I have changed VISUALIZE to True. After making this changes in make_mixture_map file ,I run this file then it is showing ValueError: could not broadcast input array from shape(6000,8000) into shape (1500,2000),line 214, in apply_wb_raw.

@simonebenitozzi
Copy link

I experienced the same issue

The problem is that, in the apply_wb_raw() funtion, it states:
illumination_map : half size illumination map in RGB channel order
which is what the function actually expects as input, but this halving is never performed in the code

To solve the issue, I added the following line at the beginning of the function:

h,w,_ = illumination_map.shape
illumination_map = np.resize(illumination_map, (int(h/2), int(w/2), 3))

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