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

A problem about strand curvatures. #29

Open
XiaokunSun opened this issue Sep 30, 2024 · 0 comments
Open

A problem about strand curvatures. #29

XiaokunSun opened this issue Sep 30, 2024 · 0 comments

Comments

@XiaokunSun
Copy link

Hi! I noticed that you mentioned in neuralhaircut that the incorporation of curvature loss can better model curly strands. How do you define curvature? My understanding is that curvature represents the rate of change of orientation, and the implementation code is similar to:

# strand.shape = [N, 100, 3]
strand_ori = strand[:, 1:, :] - strand[:, :-1, :]
strand_ori= strand_ori/ (torch.norm(strand_ori, dim=-1)[:, :, None] + 1e-20)
strand_cur= strand_ori[:, 1:, :] - strand_ori[:, :-1, :]

Do I understand correctly? Looking forward to your reply

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

1 participant