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

Question about beta #2

Open
zdaiot opened this issue Oct 12, 2021 · 3 comments
Open

Question about beta #2

zdaiot opened this issue Oct 12, 2021 · 3 comments

Comments

@zdaiot
Copy link

zdaiot commented Oct 12, 2021

Thank you for your work. I have learned a lot from it, but I have a question.

From the screenshot of the paper:
image

Full_light_end_y and light_end_y denote w/2 and 5*w, respectively.

But the code is:

    full_light_end_y = int(math.sqrt(beta) + 0.5)
    light_end_y = int(math.sqrt(beta * 20) + 0.5)

What is the correspondence between parameter beta and w?

Looking forward to your reply, thank you

@RjDuan
Copy link
Owner

RjDuan commented Oct 14, 2021

Hi, thanks for your interest!
About the correspondence between parameter beta and w:
w = 2* int(math.sqrt(beta) + 0.5). That is, we use beta to decide the value of w.
Regarding light_end_y = int(math.sqrt(beta * 20) + 0.5), in which 20 is an experimental value, which decides where the color of light beam fades out, larger value (e.g., 100) means the light beam attenuate slower. 5w is a earlier version (sorry for the mistake).
Hope the info helps!

@zdaiot
Copy link
Author

zdaiot commented Oct 15, 2021

Thank you for your reply. I would also like to ask whether the formula w = 2 * int (math.sqrt (beta) + 0.5) is also an experimental value. How did you get 2 and 0.5?

Looking forward to your reply, thank you

@RjDuan
Copy link
Owner

RjDuan commented Oct 15, 2021

Nope, either 2 or 0.5 is not an experimental value.
Actually, the experiment starts with the beta, but considering width could be easier to be understood, so we use the width (w) in the paper.
The formula w = 2 * int (math.sqrt (beta) + 0.5), in which:
0.5: int(x+0.5) is a common quantization method.
2: int (math.sqrt (beta) + 0.5) defines the distance between the current point and axis, thus it is half of the width.

Hope it helps~

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