GeoTransformer icon indicating copy to clipboard operation
GeoTransformer copied to clipboard

random_sample_rotation problem

Open Jianqiuer opened this issue 1 year ago • 0 comments

Thanks for your nice work. What is the meaning of the random_sample_rotation function performing the np.linalg.norm(axis) operation? ` def random_sample_rotation_v2() -> np.ndarray: axis = np.random.rand(3) - 0.5 axis = axis / np.linalg.norm(axis) + 1e-8 theta = np.pi * np.random.rand() euler = axis * theta rotation = Rotation.from_euler('zyx', euler).as_matrix() return rotation

`

Jianqiuer avatar Oct 22 '23 14:10 Jianqiuer