pals-ttic / sjc

Score Jacobian Chaining: Lifting Pretrained 2D Diffusion Models for 3D Generation (CVPR 2023)
https://pals.ttic.edu/p/score-jacobian-chaining
Other
504 stars 15 forks source link

Question about train_eye_with_prompts #17

Closed woo1726 closed 1 year ago

woo1726 commented 1 year ago

It might be a dumb question but I'm new to 3D. I'm trying to understand the purpose of *φ = np.arccos(1 - 2 (vs / π)) in pose.py. As far as I know, φ is the increased version of vs if vs is lower than π/2, and decreased one if vs** is greater than π/2. I would really appreciate it if you could tell me the purpose of that line! Great work by the way!

w-hc commented 1 year ago

It is intended to generate uniformly sampled points on a sphere. This blog post might help: http://corysimon.github.io/articles/uniformdistn-on-sphere/

w-hc commented 1 year ago

It shifts the density sightly towards the belt. You can plot it and see.

arccos plot
woo1726 commented 1 year ago

thanks a lot!!