You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @pmelchior , I ran a profiler on the scene_spectra_to_match function and as you can see, the interpolation function (in the resampling renderer) is taking most of the time (3 calls per rendering operation)
37 seconds overall
This can be reduced to 6.3 seconds by jitting the resample_obs function in interpolate.py
I also noticed that this function takes long. Until now, we have only jitted the inner loops of the sampling and the fitting functions because jit usually works best when it sees large code blocks. But it might be a good idea to jit (some part of) the renderer. The most high-level function would be Observation.render Can you try if this helps?
Hi @pmelchior , I ran a profiler on the
scene_spectra_to_match
function and as you can see, the interpolation function (in the resampling renderer) is taking most of the time (3 calls per rendering operation)37 seconds overall
This can be reduced to 6.3 seconds by jitting the
resample_obs
function ininterpolate.py
Interpolating images is indeed expensive, so should we jit this function in the code?
The text was updated successfully, but these errors were encountered: