Diff-FVR: Differentiable Fourier Volume Rendering
Dual-Domain Differentiable Fourier Volume Rendering (Diff-FVR & perspective PoU-FVR) for high-speed digitally reconstructed radiographs (DRRs) and biplanar 3D–2D spine/pelvis registration on CPU and GPU.
Instead of stepping O(N) points per ray (O(N^3) per projection), Diff-FVR precomputes a padded 3D FFT once and evaluates candidate views via O(N^2) Fourier slicing—pairing Parseval Zero-IFFT Spectral-NCC (parallel beam) with Partition-of-Unity Perspective Slab FVR (PoU-FVR) and fused Triton/CUDAGraph kernels for true cone-beam C-arm geometry.
Research software. Clinical accuracy and suitability for surgical navigation have not been established beyond retrospective phantom and cadaveric benchmark datasets.
Author: Pareel Amre · TU Dresden · pareel.amre@gmail.com · License: MIT
Benchmarks vs. Spatial DRR Renderers (DiffDRR & nanodrr)
1. Soft-Spot Architectural & Calibration Fixes (exp33, NVIDIA A100-SXM4-40GB)
Two fixes directly resolve the remaining failure modes from exp32:
- Isotropic
4x4x4@64bf16PoU Slab Partition eliminates lateral/CC magnification drift on wide-field CT cohorts without changing the edge-dominant NCC loss (droppingGE Clinical CTfrom9.771to1.406 mm,AMOS 0001from3.749to1.381 mm, and lifting standaloneDeepFluoro< 2 mmrate from58.3%to91.7%,1.423 mmmedian). - Per-Axis
{-0.5, 0, +0.5}³Isocenter Parity Calibration +top_k=4Multi-Survivorf32nanodrrPolish (< 0.5 GB) fixes thesubject05parity ambiguity andK=1basin-handoff misses while holding peak VRAM to464.1 MB(20f32spatial steps).
Real Clinical DeepFluoro Cohort (exp33a, N=24: 12 Bounded Tier 1 + 12 Unanchored Tier 2, H=256, B=64)
| Cohort Subset | Method | n |
Median [Q25, Q75] mTRE | < 2 mm |
< 5 mm |
prep / reg (Total) |
Peak VRAM |
|---|---|---|---|---|---|---|---|
All (Tier 1+2) |
Hybrid PoU-Triton (K=4) + nanodrr f32 (<0.5 GB) |
24 | 0.835 mm [0.756, 0.997] |
100.0% | 100.0% | 0.445 / 1.368 s (1.813 s) |
464.1 MB |
All (Tier 1+2) |
Hybrid PoU-Triton (K=4) + DiffDRR polish |
24 | 0.857 mm [0.825, 0.948] |
100.0% | 100.0% | 0.445 / 6.607 s (7.051 s) |
21,948.2 MB |
All (Tier 1+2) |
PoU-FVR Triton (4x4x4@64 bf16, B=64) |
24 | 1.423 mm [1.020, 1.868] |
91.7% | 100.0% | 1.950 / 4.475 s (6.425 s) |
3,367.5 MB |
| Tier 2 Wide-Basin | Hybrid PoU-Triton (K=4) + nanodrr f32 (<0.5 GB) |
12 | 0.828 mm [0.756, 1.056] |
100.0% | 100.0% | 0.445 / 1.165 s (1.609 s) |
464.1 MB |
| Tier 2 Wide-Basin | PoU-FVR Triton (4x4x4@64 bf16, B=64) |
12 | 1.430 mm [1.036, 1.867] |
100.0% | 100.0% | 1.950 / 4.489 s (6.439 s) |
3,367.5 MB |
Wide-Angle (>15°) |
Hybrid PoU-Triton (K=4) + nanodrr f32 (<0.5 GB) |
20 | 0.807 mm [0.720, 0.895] |
100.0% | 100.0% | 0.425 / 1.342 s (1.767 s) |
464.1 MB |
Clinical Spine & Abdominal CT Cone-Beam GPU Fixes (exp33c, B=64, Poisson-Gaussian Noise)
CT Cohort (H²) |
Method | Trials | Median [Q25, Q75] mTRE | < 2 mm |
prep / reg |
Peak VRAM |
|---|---|---|---|---|---|---|
Kaggle Lumbar Spine (256²) |
PoU-FVR Triton (4x4x4@64 bf16) |
6 | 0.307 mm [0.295, 0.314] |
100.0% | 1.757 / 4.412 s |
3,376.1 MB |
Kaggle Lumbar Spine (256²) |
Hybrid PoU-Triton (K=4) + nanodrr f32 (<0.5 GB) |
6 | 0.046 mm [0.044, 0.088] |
83.3% | 0.270 / 1.170 s |
464.0 MB |
Kaggle Lumbar Spine (512²) |
PoU-FVR Triton (4x4x4@64 bf16) / Hybrid+nano (K=4) |
4 | 0.461 / 0.642 mm |
100.0% / 100.0% | 6.986 / 1.962 s reg |
3,520.1 / 907.6 MB |
AMOS 0001 Thoracolumbar (256²) |
PoU-FVR Triton (4x4x4@64 bf16) / Hybrid+nano (K=4) |
6 | 1.381 / 0.150 mm | 100.0% / 100.0% | 3.937 / 1.201 s reg |
2,856.9 / 464.8 MB |
GE Clinical CT (256²) |
PoU-FVR Triton (4x4x4@64 bf16) / Hybrid+nano (K=4) |
6 | 1.406 / 0.052 mm | 100.0% / 100.0% | 4.330 / 1.206 s reg |
3,272.1 / 464.0 MB |
2. Matched-Batch, Wide-Basin & Clinical Spine/Pelvis Rebuttal (exp32, NVIDIA A100-SXM4-40GB)
All exp32 experiments report offline preparation (prep_s) separately from online registration (reg_s), median [Q25, Q75] mTRE in physical mm, and paired Wilcoxon signed-rank tests (p).
Matched B=64 Real Clinical DeepFluoro Cohort (exp32a, N=24: 12 Bounded Tier 1 + 12 Unanchored Tier 2, H=256)
Tier 2 uses unanchored multi-start seeds (±16° / ±22 mm without pinning seed[0] = 0). Single-launch DiffDRR (f32 B=64) hits OOM on A100-40GB and requires mb=4 micro-batching (184.129 s, 21,606.9 MB VRAM on subject01). Note that <0.5 GB Hybrid PoU-Triton + nanodrr (bf16) trades final sub-millimeter polish for ultra-low VRAM (464.2 MB) and 1.188 s runtime, whereas Hybrid PoU-Triton + DiffDRR polish achieves highest accuracy.
| Cohort Subset | Method | n |
Median [Q25, Q75] mTRE | < 2 mm |
< 5 mm |
prep / reg (Total) |
Peak VRAM | Wilcoxon p (DiffDRR B=1 / nanodrr B=64) |
|---|---|---|---|---|---|---|---|---|
All (Tier 1+2) |
Hybrid PoU-Triton + DiffDRR polish |
24 | 1.016 mm [0.846, 1.416] |
95.8% | 100.0% | 0.451 / 1.789 s (2.240 s) |
5,490.6 MB | 1.50e-4 / 2.28e-4 |
All (Tier 1+2) |
PoU-FVR Triton (2x4x2@80 bf16, B=64) |
24 | 1.903 mm [1.346, 2.085] |
58.3% | 100.0% | 1.205 / 2.075 s (3.280 s) |
1,348.0 MB | 1.09e-3 / 0.663 |
All (Tier 1+2) |
Hybrid PoU-Triton + nanodrr (<0.5 GB) |
24 | 2.385 mm [1.191, 2.775] |
45.8% | 91.7% | 0.451 / 1.188 s (1.639 s) |
464.2 MB | 2.00e-3 / 0.039 |
All (Tier 1+2) |
nanodrr triton+compile (bf16 n=500, B=64) |
24 | 1.538 mm [1.161, 2.145] |
66.7% | 95.8% | 3.910 / 5.302 s (9.212 s) |
334.7 MB | 2.00e-3 / 1.000 |
All (Tier 1+2) |
DiffDRR Single-Start (f32 B=1) |
24 | 9.820 mm [1.130, 27.729] |
33.3% | 41.7% | 0.000 / 3.165 s (3.165 s) |
5,490.5 MB | 1.000 / 2.00e-3 |
subject01 Probe |
DiffDRR Multi-Start (f32 B=64, mb=4) |
1 | 1.257 mm [1.257, 1.257] |
100.0% | 100.0% | 0.000 / 184.129 s (184.1 s) |
21,606.9 MB | — (OOM@64) |
| Tier 2 Wide-Basin | Hybrid PoU-Triton + DiffDRR polish |
12 | 1.026 mm [0.846, 1.442] |
91.7% | 100.0% | 0.451 / 1.789 s (2.240 s) |
5,490.6 MB | 4.88e-4 / 0.0161 |
| Tier 2 Wide-Basin | PoU-FVR Triton (B=64) / nanodrr (B=64) |
12 | 1.903 vs. 1.546 mm | 66.7% vs. 66.7% | 100.0% vs. 91.7% | 2.064 s vs. 4.757 s reg |
1,348.0 vs. 323.4 MB | 4.88e-4 / 0.910 |
| Tier 2 Wide-Basin | DiffDRR Single-Start (f32 B=1) |
12 | 28.394 mm [23.346, 34.149] |
0.0% | 8.3% | 0.000 / 3.153 s |
5,490.6 MB | 1.000 / 4.88e-4 |
Wide-Angle (>15°) |
Hybrid PoU-Triton + DiffDRR polish |
20 | 0.905 mm [0.810, 1.241] |
100.0% | 100.0% | 0.452 / 1.784 s (2.236 s) |
5,453.7 MB | 2.10e-4 / 1.20e-4 |
float32 vs. bfloat16 Forward & Registration Parity (exp32b, subject01–subject06, H=256, B=64)
Across all six patients, bfloat16 PoU-FVR preserves identical forward correlation against DiffDRR (TrueNCC: 0.97822–0.99864 in bf16 vs. 0.97824–0.99864 in f32; max |ΔTrueNCC| ≤ 3e-5) and nearly identical Tier-1 mTRE (cohort mean 1.793 mm in bf16 vs. 1.808 mm in f32; max per-subject |ΔmTRE| = 0.048 mm on subject02) while reducing registration wall time by ~11% (2.082 s vs. 2.331 s).
Clinical Spine & Abdominal CT Cone-Beam GPU Benchmark (exp32c, B=64, Poisson-Gaussian Noise)
Evaluated on true CT Hounsfield volumes under calibrated cone-beam geometry against nanodrr (n=500) noisy target X-rays (prep shown separately from reg):
CT Cohort (H²) |
Method | Trials | Median [Q25, Q75] mTRE | < 2 mm |
prep / reg |
Peak VRAM |
|---|---|---|---|---|---|---|
Kaggle Lumbar Spine (256²) |
PoU-FVR Triton (2x4x2@80 bf16) |
6 | 0.883 mm [0.873, 0.893] |
100.0% | 0.862 / 2.066 s |
1,348.0 MB |
Kaggle Lumbar Spine (256²) |
nanodrr triton+compile (B=64) |
6 | 0.025 mm [0.017, 0.031] |
100.0% | 0.000 / 5.099 s |
323.9 MB |
Kaggle Lumbar Spine (256²) |
Hybrid PoU-Triton + nanodrr (<0.5 GB) |
6 | 4.955 mm [1.013, 7.156] |
33.3% | 0.237 / 1.024 s |
464.0 MB |
Kaggle Lumbar Spine (256²) |
DiffDRR Single-Start (f32 B=1) |
6 | 4.827 mm [3.111, 6.555] |
16.7% | 0.000 / 1.836 s |
2,784.0 MB |
Kaggle Lumbar Spine (512²) |
PoU-FVR Triton (2x4x2@80 bf16) |
4 | 1.141 mm [1.139, 1.150] |
100.0% | 0.862 / 3.517 s |
1,492.0 MB |
AMOS 0001 Thoracolumbar (256²) |
Hybrid PoU-Triton + nanodrr (<0.5 GB) |
6 | 0.534 mm [0.515, 0.582] |
100.0% | 0.230 / 0.995 s |
464.4 MB |
AMOS 0001 Thoracolumbar (256²) |
PoU-FVR (B=64) / nanodrr (B=64) |
6 | 3.749 vs. 0.079 mm | 0.0% vs. 100.0% | 2.105 vs. 5.289 s reg |
1,348 vs. 324 MB |
GE Clinical CT (256²) |
Hybrid PoU-Triton + nanodrr (<0.5 GB) |
6 | 0.144 mm [0.110, 0.165] |
100.0% | 0.225 / 0.988 s |
464.0 MB |
GE Clinical CT (256²) |
PoU-FVR (B=64) / nanodrr (B=64) |
6 | 9.771 vs. 0.035 mm | 0.0% vs. 100.0% | 2.051 vs. 5.581 s reg |
1,348 vs. 323 MB |
3. Earlier A100 Cohort & Multi-Start Registration Studies (exp30–exp31)
Real Paired Clinical DeepFluoro Cohort (exp31, All 6 Subjects, 18 Trials, H=256, B=64, Mean Init 12.002 mm)
Evaluated under true cone-beam geometry against DiffDRR (0.9782–0.9986 true-pose forward NCC across subject01–subject06):
| Cohort Subset | Method | Cases | Mean mTRE | Median mTRE | < 2 mm |
< 5 mm |
Mean Time | Peak VRAM |
|---|---|---|---|---|---|---|---|---|
| All 6 Subjects | Hybrid PoU-Triton + DiffDRR polish | 18 | 1.069 mm | 0.938 mm | 100.0% | 100.0% | 1.818 s | 5,490.9 MB |
| All 6 Subjects | PoU-FVR Triton Multi-Start (B=64) |
18 | 1.786 mm | 1.907 mm | 50.0% | 100.0% | 2.110 s | 1,348.0 MB (4.07x less) |
| All 6 Subjects | DiffDRR Single-Start (f32 B=1) |
18 | 7.216 mm | 3.130 mm | 50.0% | 61.1% | 3.259 s | 5,490.8 MB |
Wide-Angle (> 15°) |
Hybrid PoU-Triton + DiffDRR polish | 15 | 1.034 mm | 0.873 mm | 100.0% | 100.0% | 1.811 s | 5,454.2 MB |
Wide-Angle (> 15°) |
PoU-FVR Triton Multi-Start (B=64) |
15 | 1.729 mm | 1.800 mm | 60.0% | 100.0% | 2.106 s | 1,348.0 MB (4.05x less) |
Wide-Angle (> 15°) |
DiffDRR Single-Start (f32 B=1) |
15 | 5.968 mm | 1.774 mm | 53.3% | 66.7% | 3.261 s | 5,454.0 MB |
Bi-Planar B=64 Multi-Start Registration vs. nanodrr (exp30, subject01 + Calibrated nanodrr n=500 Synthetic Targets, 10 Trials, 50 Steps, Mean Init 15.789 mm)
With warmup_pinhole and dynamic Triton block loops eliminating Trial-1 JIT cold-start recompilation (2.129 s on Trial 1):
| Method | Trials | Mean mTRE | Median mTRE | < 2 mm |
Mean Time | Speedup vs. nanodrr triton |
Peak VRAM |
|---|---|---|---|---|---|---|---|
PoU-FVR Triton (2x4x2@80 bf16) |
10 | 0.950 mm | 0.848 mm | 100.0% | 2.161 s | 2.79x |
1,348.0 MB |
Hybrid PoU-Triton + nanodrr polish |
10 | 1.495 mm | 1.475 mm | 100.0% | 1.341 s | 4.50x |
464.0 MB |
nanodrr triton+compile (bf16 n=500) |
10 | 1.503 mm | 1.503 mm | 100.0% | 6.035 s | 1.00x |
355.4 MB |
nanodrr torch (f32 n=500) |
0 | OOM |
— | — | OOM |
— | > 40 GB (OOM) |
3. Batched Forward & Differentiable fwd+bwd Throughput on NVIDIA A100 (exp29)
Benchmarked on NVIDIA A100-SXM4-40GB (0.394 s one-time 3D FFT prep for PoU-FVR 2x2x2; zero OOM entries across all 135 (H, B, method) cells; 320 MB CUDAGraph persistent static workspace incurs 0 MB additional replay allocation; [mb=16] sequential micro-batching is used where single-launch nanodrr torch at 512², B=64 would require 93.75 GiB):
Cone-Beam Forward Pass Comparison
Grid (H², B) |
PoU-FVR Triton+Graph (bf16) |
PoU-FVR Triton eager (bf16) |
nanodrr triton+comp (n=200) |
nanodrr triton+comp (n=500) |
nanodrr torch (n=500) |
DiffDRR (f32) |
PoU-FVR Speedup vs. triton (n=500) / torch |
|---|---|---|---|---|---|---|---|
256², B=1 |
0.108 ms (9,254 FPS) |
1.241 ms (806 FPS, 5 MB) |
0.570 ms (1,753 FPS) |
0.707 ms (1,415 FPS) |
2.860 ms (350 FPS, 503 MB) |
16.425 ms (61 FPS, 2,582 MB) |
6.5x vs. Triton / 152x vs. DiffDRR |
256², B=64 |
1.969 ms (32,501 FPS) |
2.703 ms (23,678 FPS, 320 MB) |
6.034 ms (10,606 FPS) |
14.281 ms (4,481 FPS) |
115.527 ms (554 FPS, 32,144 MB) |
— | 7.25x vs. Triton / 58.7x vs. Torch |
512², B=1 |
0.114 ms (8,738 FPS) |
1.247 ms (802 FPS, 5 MB) |
0.835 ms (1,197 FPS) |
1.352 ms (740 FPS) |
7.440 ms (134 FPS, 2,010 MB) |
— | 11.8x vs. Triton / 65.0x vs. Torch |
512², B=16 |
0.576 ms (27,773 FPS) |
1.386 ms (11,541 FPS, 80 MB) |
6.028 ms (2,654 FPS) |
14.238 ms (1,124 FPS) |
112.421 ms (142 FPS, 32,145 MB) |
— | 24.7x vs. Triton / 195x vs. Torch |
512², B=64 |
2.415 ms (26,506 FPS) |
3.163 ms (20,233 FPS, 320 MB) |
22.650 ms (2,826 FPS) |
55.426 ms (1,155 FPS) |
446.134 ms (143 FPS, [mb=16], 32,193 MB) |
— | 23.0x vs. Triton / 185x vs. Torch |
Parallel-Beam Zero-IFFT Loss (
TorchDiffFVR Zero-IFFT NCC): Evaluates256², B=64in 1.294 ms (49,454 FPS,96 MB) and512², B=64in 3.470 ms (18,445 FPS,384 MB) with zero 2D IFFTs inside the optimization loop.
End-to-End Differentiable fwd+bwd Training Step (PoU-FVR Triton 2x2x2 vs. nanodrr triton n=500)
Grid (H², B) |
PoU-FVR Triton fwd+bwd |
nanodrr triton (n=500) fwd+bwd |
Speedup | Working VRAM (PoU vs. nanodrr) |
|---|---|---|---|---|
256², B=16 |
4.270 ms (3,747 FPS) |
10.318 ms (1,551 FPS) |
2.42x |
80.0 MB vs. 22.3 MB |
256², B=64 |
7.074 ms (9,047 FPS) |
38.836 ms (1,648 FPS) |
5.49x |
320.0 MB vs. 88.3 MB |
512², B=16 |
6.137 ms (2,607 FPS) |
38.628 ms (414 FPS) |
6.29x |
80.0 MB vs. 89.0 MB |
512², B=64 |
21.843 ms (2,930 FPS) |
150.999 ms (424 FPS) |
6.91x |
320.0 MB vs. 353.0 MB |
4. PoU-FVR Block / Resolution Pareto Ablation on A100 (exp29, 256², SDD=1020 mm, B=1)
Fused-Triton forward wall latency remains flat at 1.20–1.26 ms across 11 block-grid/spectral-resolution configurations:
| Blocks | Block Res. | Prep (s) | Wall (ms) | Intensity NCC vs. Raymarch | Edge-NCC vs. Raymarch | Cache VRAM (MB) |
|---|---|---|---|---|---|---|
1×1×1 |
64³ |
0.110 | 1.202 | 0.9213 | 0.4194 | 0.63 |
2×2×2 |
64³ |
0.399 | 1.222 | 0.9393 | 0.5231 | 5.00 |
2×4×2 |
80³ |
1.391 | 1.250 | 0.9512 | 0.6865 | 15.63 |
2×4×2 |
96³ |
1.773 | 1.241 | 0.9551 | 0.7456 | 22.50 |
4×4×2 |
80³ |
2.285 | 1.258 | 0.9633 | 0.7319 | 31.25 |
5. Geometry-Matched CPU & Real Clinical Benchmarks (exp25–exp28)
Strict Geometry-Matched CPU Comparison on DeepFluoro subject01 (exp27)
| Detector & Geometry | Method | Prep (s) | Fwd (ms) | Fwd+Bwd (ms) | 40-Step 2-View Time | Speedup (Fwd / 40-Step) |
|---|---|---|---|---|---|---|
128², Parallel (SDD=1e6 mm) |
Diff-FVR (1×1×1) |
0.323 | 27.31 ms | 57.62 ms | 4.93 s | 38.2x / 31.1x vs. Siddon |
128², Parallel (SDD=1e6 mm) |
DiffDRR Trilinear / Siddon | 0.000 | 466.49 / 1,042.68 ms | 1,182.29 / 1,918.18 ms | 94.58 / 153.45 s | 1.0x |
128², Cone-Beam (SDD=1020 mm) |
PoU-FVR (2×2×2) |
0.798 | 18.61 ms | 40.25 ms | 4.02 s | 59.8x / 38.9x vs. Siddon |
128², Cone-Beam (SDD=1020 mm) |
DiffDRR Trilinear / Siddon | 0.000 | 625.78 / 1,113.37 ms | 1,582.02 / 1,954.21 ms | 126.56 / 156.34 s | 1.0x |
256², Parallel (SDD=1e6 mm) |
Diff-FVR (1×1×1) |
0.323 | 28.16 ms | 59.90 ms | 5.12 s | 128.2x / 112.9x vs. Siddon |
256², Parallel (SDD=1e6 mm) |
DiffDRR Trilinear / Siddon | 0.000 | 1,762.42 / 3,609.73 ms | 4,513.23 / 7,225.14 ms | 361.06 / 578.01 s | 1.0x |
256², Cone-Beam (SDD=1020 mm) |
PoU-FVR (2×2×2) |
0.798 | 32.47 ms | 90.32 ms | 8.02 s | 125.3x / 77.3x vs. Siddon |
256², Cone-Beam (SDD=1020 mm) |
DiffDRR Trilinear / Siddon | 0.000 | 2,045.89 / 4,067.84 ms | 5,020.07 / 7,752.56 ms | 401.61 / 620.21 s | 1.0x |
Real Paired CPU C-Arm & GE DICOM Magnification Cohorts (exp25, exp26, exp28)
| Cohort / Benchmark | Baseline Comparison | Measured Outcome |
|---|---|---|
exp25 (DeepFluoro subject01, 10 views, CPU) |
Diff-FVR vs. DiffDRR 0.6.1 (Siddon) |
106x forward speedup (10.9 ms vs. 1,153.8 ms), NCC = 0.921–0.986 (mean 0.9676); Hybrid biplanar 5.93 mm in 62.1 s vs. DiffDRR 5.95 mm in 103.3 s |
exp26 (DeepFluoro subject01–06, CPU) |
Multi-subject 6-DoF cohort (N=6) |
88.3x forward speedup (14.7 ms vs. 1,248.1 ms); Hybrid 3.41 mm (123.3 s) vs. DiffDRR 3.73 mm (158.0 s) |
exp28 (GE DICOM C-Arms, 600/900–1000/1400 mm) |
Uncalibrated Ortho vs. Calibrated vs. PoU-FVR | True-pose NCC 0.9912–0.9969; PoU-FVR 0.75–1.32 mm in 5.0–5.5 s (vs. 39.7–41.0 mm uncalibrated ortho, 5.9–10.2 mm calibrated ortho) |
Full experiment CSVs: exp29_gpu_benchmark.csv, exp29_pou_ablation.csv, exp30_gpu_multistart_reg.csv, exp30_gpu_multistart_summary.csv, exp31_deepfluoro_gpu_cohort.csv, exp31_deepfluoro_gpu_summary.csv, exp32_deepfluoro_matched_b64.csv, exp32_deepfluoro_summary.csv, exp32_precision_ablation.csv, exp32_spine_ct_conebeam.csv, exp32_spine_ct_summary.csv, exp33_deepfluoro_fixes.csv, exp33_deepfluoro_summary.csv, exp33_spine_ct_fixes.csv, exp33_spine_ct_summary.csv, and outputs/paper_figures/.
What the Simulation & Unit Scope Covers
The experiments/ directory contains 33 numbered simulation, real C-arm fluoroscopy, and NVIDIA A100 GPU benchmark studies (plus 9b).
Experiments 7, 12, and 13 each use one source CT volume and multiple randomized poses with same-renderer Fourier targets and optional synthetic noise; mTRE in those early simulation scripts uses eight synthetic volume landmarks rather than anatomical fiducials. Historical CSVs/figures in outputs/paper_figures/ numbered <= 23 predate the physical-unit correction; see result limitations. Experiments 25–33 evaluate calibrated physical-mm coordinates against independent raycasting (DiffDRR 0.6.1, nanodrr), clinical spine/abdominal CT cone-beam cohorts (Kaggle Lumbar Spine, AMOS 0001, GE DICOM), and paired real DeepFluoro pelvic CT + physical C-arm radiographs with anatomical fiducials.
Projection Geometry and Physical Units
RobustDiffFVREngineaccepts a cubic, isotropic volume and spacing(Z, Y, X)in mm. Its poses use(yaw, pitch, roll, tx, ty, tz), with rotations in degrees and translations/bounds in mm.- The CLI preserves CT spacing while resampling to an isotropic cube that fits the longest physical dimension. NPY input contains HU values and defaults to
1 mmper voxel (--spacing-mm Z Y Xoverrides this); DICOM spacing comes from metadata. - AP projects along
Y(Xhorizontal,Zvertical); Lateral projects alongX(Yhorizontal,Zvertical). CLI targets must match the rendered grid (fvr-registertargets parallel-beam geometry and explicitly rejects uncalibratedSDD/SADarguments; perspective cone-beam projection is implemented separately viaPerspectiveSlabFVR/PoU-FVR). - Low-level NumPy renderers and
gradientsretain their voxel-coordinate conventions.compute_mtre_6dofreturns mm when passed measuredspacingandtranslation_units='mm'for robust-core poses.
Installation & Quick Start
# Base installation (CPU SciPy/NumPy engines + CLI)
pip install diff-fvr
# With PyTorch perspective PoU-FVR & Zero-IFFT Spectral-NCC
pip install "diff-fvr[torch]"
# With PyTorch + Triton kernels (Linux NVIDIA GPU)
pip install "diff-fvr[gpu]"
Run a synthetic biplanar CLI simulation or test suite from source:
git clone https://github.com/pareelamre/diff-fvr.git
cd diff-fvr
pip install -e ".[torch]"
# Generate synthetic AP & Lateral DRRs (parallel-beam CLI model)
fvr-render --ct data/dicom --res 96 --view ap --tx 4 --ty 2 --tz 3 --out outputs/example_ap.png
fvr-render --ct data/dicom --res 96 --view lateral --tx 4 --ty 2 --tz 3 --out outputs/example_lat.png
# Recover the 6-DoF pose
fvr-register --ct data/dicom --res 96 --ap outputs/example_ap.png --lat outputs/example_lat.png --out outputs/example_pose.json
# Run full unit & integration test suites
python -m unittest discover -s tests -v
python tests/test_core_engine.py
The browser demonstration is a scripted illustration with synthetic images and an interpolated convergence animation; it does not execute the Python registration engine.
Repository Structure
| Path | Contents |
|---|---|
src/fvr/ |
Core CPU Fourier engines, perspective PoU-FVR, fused Triton kernels, autograd, DICOM loader, and fvr-render / fvr-register CLI |
tests/ |
Unit tests (test_cone_beam_fvr.py, test_physical_units.py, test_torch_engine.py) and end-to-end CT registration tests |
experiments/ |
Simulation, real paired DeepFluoro / GE DICOM C-arm studies (exp25–exp28), and NVIDIA A100 GPU benchmarks (exp29–exp33) |
outputs/ |
Benchmark CSVs (exp29_*.csv–exp33_*.csv) and publication figures (outputs/paper_figures/) |
docs/ |
Illustrative web demonstration |
Metadata
Release files for diff-fvr 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diff_fvr-1.2.0.tar.gz | 69.2 kB | With provenance | Details for diff_fvr-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diff_fvr-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for diff_fvr-1.2.0-py3-none-any.whl |
Total release size: 128.3 kB
Release files / diff_fvr-1.2.0.tar.gz
| Download URL | diff_fvr-1.2.0.tar.gz |
|---|---|
| Size | 69.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82c8c45ccd97afd4d326f3ad868885879c307f80facee7297b296e9e445a3ce7
|
|
BLAKE2b-256 checksum How to use checksums |
db19a4b15184a09ec383ea5fa0c2e05c8c56aeb2ed1738b57cfc6a391c0912cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / diff_fvr-1.2.0-py3-none-any.whl
| Download URL | diff_fvr-1.2.0-py3-none-any.whl |
|---|---|
| Size | 59.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f923efeb49b03cc29391bff3fb3652b6f0826d465cde3af51f242783955ace6
|
|
BLAKE2b-256 checksum How to use checksums |
e5574cb0750083e0ca83523ecf61b214573a9afbbda106325ed475a26e8d8909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for diff-fvr 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for diff_fvr-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.