Skip to content

How to inverse some scene params using pytorch? #308

Answered by Speierers
owaranainatsu asked this question in Q&A
Discussion options

You must be logged in to vote

In your case, you need to be more careful when converting the tensor argument of render_torch into a Color3f object. See this issue for more detailed information.

You will likely need to use something like this to make it work:

params[key] = dr.unravel(mi.Color3f, r.array)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@owaranainatsu
Comment options

Answer selected by owaranainatsu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants