-
Hi! I'm trying to implement a custom SVBRDF model with PyTorch -- everything else seems to be working, but the Is there something I should configure differently to make this work? Or should I compile Mitsuba myself and try to fix the issue in the linked code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @msqrt Indeed, it seems that this path of code is only enabled in non-AD variants. I wonder why... You can either re-compile the project yourself and remove that |
Beta Was this translation helpful? Give feedback.
Hi @msqrt
Indeed, it seems that this path of code is only enabled in non-AD variants. I wonder why...
You can either re-compile the project yourself and remove that
constexpr ... is_diff_v<Float
condition. Another solution would be to explicitly callsi.compute_uv_partials
right before callingsi.bsdf(ray)
in your code.