Show HN: Volresample – 3D volume resampling up to 13× faster than PyTorch on CPU
https://github.com/JoHof/volresample
I built a small Cython + OpenMP library for resampling 3D volumes (medical images, etc.). It's an almost drop-in replacement for torch.nn.functional.interpolate and grid_sample, but runs on NumPy arrays and doesn't require PyTorch.Benchmarks (Intel i7, 4 cores, PyTorch 2.8.0):resample 512³→256³ trilinear: 34 ms vs 55 ms (1.6×) area mode: 65 ms vs 613 ms (9.5×) — PyTorch doesn't parallelize this...