Commit ead21ba
fix(splatfacto): replace hardcoded .cuda() with .to(self.device) for MPS support
Two lines in splatfacto.py use .cuda() directly instead of the model's
device property, causing crashes on non-CUDA systems (Apple Silicon MPS,
CPU-only machines) with "Torch not compiled with CUDA enabled".
Replace with .to(self.device) which correctly resolves to cuda:N on NVIDIA,
mps:0 on Apple Silicon, or cpu as appropriate.
Tested on M2 Max (MPS) — model initializes and runs forward pass successfully.
CUDA compatibility preserved: .to(self.device) resolves to cuda:N on CUDA systems.
Discovered and benchmarked by an autonomous Claude Code agent ("Ralph")
optimizing a 3D scanning pipeline for Apple Silicon.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 50e0e3c commit ead21ba
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
0 commit comments