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
{{ message }}
Repository navigation
Please provide a option to run pygem RBF with single precision (fp32) #278
I am trying to use pygem to deform a mesh with roughly 500,000 nodes and 256 control points with the RBF function of 'thin_plate_spline'. It took about 20GB of RAM at peak, which is nearly reaching the RAM capacity of my system. After testing each single part of my code (step by step), I found the memory usage reached the peak right during the running of the RBF functions.
Then I tried to use Copilot to write a single precision version of pygem rbf. After rerunning the test, which took about 12GB of RAM at peak. And the deformed mesh looks good enough to me.
The RBF with single precision option is attached to this request.
Activity
mtezzele commentedon Oct 22, 2025
Hi @Icbears . Could you please open a PR with this new feature together with a simple test case?
ndem0 commentedon Dec 4, 2025
Fixed in #279