Jiawei-Yang / FreeNeRF

[CVPR23] FreeNeRF: Improving Few-shot Neural Rendering with Free Frequency Regularization
454 stars 27 forks source link

About frequency regularization mask in code #3

Closed YiningPeng closed 1 year ago

YiningPeng commented 1 year ago

Very good job, but I have a doubt about the code. In the function get_freq_reg_mask in the math.py, why don't you multiply the ptr by 3 when calculating the frequency mask fractional part? For example: freq_mask[int_ptr * 3 : int_ptr * 3 + 3] =3* (ptr - int_ptr) Please forgive me if there is a misunderstanding.

Jiawei-Yang commented 1 year ago

Hi, the values in freq_mask should fall into the range of [0, 1], and ptr - int_ptr is the fractional part which is always within that range. Multiplying 3 doesn't make sense here.