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
SRC correction sped up using math.sqrt instead of np.sqrt. Also used int() instead of .astype(int). I see a speedup of 1.7x on the hello world scan when processing EGN and exporting WCR rect/non-rect imagery! Great work @dbuscombe-usgs! Still unsure how to vectorize (if it's even possible) but considering that task as complete for the time being. May return if struck with divine numpy inspiration in the future.
This will also speed up the substrate mapping workflow, including rectifying probs/logits since each class needs to be slant range corrected. Checking that task as complete also. Leaving issue open to identify other sources for speedup.
Activity
Speedup wcp_src (#66) Thx @dbuscombe-usgs !!
CameronBodine commentedon May 11, 2023
SRC correction sped up using
math.sqrtinstead ofnp.sqrt. Also usedint()instead of.astype(int). I see a speedup of 1.7x on thehello worldscan when processing EGN and exporting WCR rect/non-rect imagery! Great work @dbuscombe-usgs! Still unsure how to vectorize (if it's even possible) but considering that task as complete for the time being. May return if struck with divinenumpyinspiration in the future.CameronBodine commentedon May 11, 2023
This will also speed up the substrate mapping workflow, including rectifying probs/logits since each class needs to be slant range corrected. Checking that task as complete also. Leaving issue open to identify other sources for speedup.
CameronBodine commentedon Jan 22, 2024
I found this beautiful solution to speeding up the warping process while rectifying sonar imagery:
scikit-image/scikit-image#6864 (comment)
For the example dataset using 7 threads for 7 images, the rectification process went from 23.8 seconds to 16.2 seconds! About to implement.
Significant rectification speed-up #66