seanbell / intrinsic

Code for Bell et al, "Intrinsic Images in the Wild", SIGGRAPH 2014.
MIT License
152 stars 33 forks source link

mask error! #2

Open qwspph opened 5 years ago

qwspph commented 5 years ago

hello, when i use "-m ", there is an error in "decomposition.py", line 45, self.intensities[self.labels_nz]. "IndexError: index 816 is out of bounds for axis 1 with size 816" The error only come up when i use mask,can you help me? Thank u very much!

seanbell commented 5 years ago

Does the mask file have the same resolution as the input image?

qwspph commented 5 years ago

Does the mask file have the same resolution as the input image? Yes i did. I think the function "split_label_cluster()" in solver.py maybe has an error. When i commented out "new_to_old = new_to_old[new_to_old != -1]", line 387, the code run succeed. Another question:undering invariable params, if i use mask, the intrinsic result will be worse than without mask?