Skip to content

Are the input for GRID, THEORY, SPHEREC, SPHEREC+, SPHEREM, SPHEREM+ degrees or radians? #5

@xlwang233

Description

@xlwang233

Hi @MarcCoru ,

Thank you for your excellent work! I really enjoyed reading it! I have a specific question that I hope you can enlighten me on.

I thought the input to all the positional encoders should be radian value (e.g., (-pi, pi)) rather than degrees (-180, 180), however, it seems that this is not the case for those in locationencoder/pe/grid_and_sphere.py.

Because, such a line of code "coords = torch.deg2rad(coords)" (wrap.py) is only found in direct.py, wrap.py and spherical_harmonics.py, but not in grid_and_sphere.py.

I am very confused. Do those methods proposed by Mai et al. really take degrees as input, or did I miss some important details? I know I might have referred to Mai et al.'s repo, but I find their codebase a bit unclear and they seem not very responsive.

Looking forward to your reply. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions