fnzhan / EMLight

[AAAI 2021] EMLight: Lighting Estimation via Spherical Distribution Approximation, [TIP] GMLight: Lighting Estimation via Geometric Distribution Approximation
168 stars 35 forks source link

Some error when I run distribution_representation.py #17

Open xjsxjs opened 2 years ago

xjsxjs commented 2 years ago

Traceback (most recent call last): File "distribution_representation.py", line 145, in para, map = extractor.compute(hdr) File "distribution_representation.py", line 94, in compute hdr = self.steradian * hdr ValueError: operands could not be broadcast together with shapes (128,256,1) (1024,2048,3)

When I run distribution_representation.py, I encounter the above error, how can I solve it, thank you!

fnzhan commented 2 years ago

It seems to be caused by the image size, you may check it. The default size of panorama in my work is 256 * 128.

xjsxjs commented 2 years ago

It seems to be caused by the image size, you may check it. The default size of panorama in my work is 256 * 128.

Hello sir, thank you for your reply, maybe there are some problems with my understanding, I thought distribution_representation.py can be run directly with the original Laval data set, do you need other data preprocessing, can you share how it is processed, Thanks again!

fnzhan commented 2 years ago

Yes, it requires some preprocessing as described in "deep parametric indoor lighting estimation". I directly got the preprocessed data by contacting the author.

xjsxjs commented 2 years ago

Yes, it requires some preprocessing as described in "deep parametric indoor lighting estimation". I directly got the preprocessed data by contacting the author.

Thank you for your reply!

half-orange-v commented 1 year ago

Excuse me, have you got the dataset? I sent an email to the author, but he didn't reply.