question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] angle_axis_to_rotation_matrix can not be backward

See original GitHub issue

❓ Questions and Help

I want to use the angle_axis_to_rotation_matrix as a function in the pytorch pipline, the demo code is as follows:

import torch
import torchgeometry as tgm

x = torch.zeros(1, 3, requires_grad=True)  # Nx3
input = tgm.deg2rad(x)
output = tgm.angle_axis_to_rotation_matrix(input)  # Nx4x4
output.mean().backward()
print(x.grad)

then the result is as follows:

tensor([[nan, nan, nan]])

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cbamescommented, Oct 2, 2020

Sure thing, I’ll toss it on the todo list.

0reactions
edgarribacommented, Apr 21, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Conduct AngleAxisToRotationMatirx on part of a double arrray ...
1 Answer 1 ... Yeah, I see. But the issue is, xs is an array of 18 elements, while AngleAxisToRotationMatrix requires a pointer...
Read more >
ceres-solver/rotation_test.cc at master - GitHub
// Takes a bunch of random axis/angle values, converts them to quaternions,. // and back again. TEST(Rotation, AngleAxisToQuaterionAndBack) ...
Read more >
Yet another rotation quandary - Google Groups
As a fiducial test I am making re-computing the errors with rotation matrices made from the final angles. The results agree best (though...
Read more >
examples/libmv_bundle_adjuster.cc - ceres-solver - Git at ...
// - Camera translation, 3-component vector of float values. //. // Image number shall be greater or equal to zero. Order of cameras...
Read more >
Skyrim patch bug if you angle Move backwards, then try to move
First, be aware it doesn't work like pre-patch Skyrim. You no longer can move backwards by angling backwards and pressing the Move button....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found