DY112 / LSMI-dataset

[ICCV'21] Large Scale Multi-Illuminant (LSMI) Dataset for Developing White Balance Algorithm under Mixed Illumination
https://www.dykim.me/projects/lsmi
58 stars 3 forks source link

Error in Visualization part #5

Open Sakshi-Sagar673 opened 2 years ago

Sakshi-Sagar673 commented 2 years ago

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 commented 1 year ago

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))