nmexplained-totalseg-webgpu
TotalSegmentator for WebGPU in the browser
2 min readupdated
This repository contains the weights for the popular TotalSegmentator model for automated segmentation of 104 anatomical structures on CT scans, adapted to run via ONNX Runtime Web with WebGPU acceleration. The model graph was rewritten for fast inference directly in the user browser, allowing medical images to be processed locally without sending them to a server. The model is available in 3 mm and 1.5 mm resolution versions for research and educational purposes. The project is used in the Nuclear Medicine Explained service for client-side processing of CT scans.
Key features
- Optimized for WebGPU for fast execution in the browser
- Support for organ segmentation with 3 mm and 1.5 mm resolution
- Full local processing of medical images without uploading data to a remote server
- Rewritten ONNX graph for efficient convolution and transposition operations
What you can do
- Integrate the model into web applications based on ONNX Runtime Web for fast CT segmentation in the browser
- Run local analysis and visualization of anatomical structures on the client side
- Use in educational and research medical projects
Example
The model is designed to be loaded into ONNX Runtime Web. To run it, use a ready-made ONNX file (for example, total_3mm_297_webgpu2d_bas.onnx) which processes input CT slices and returns class probabilities for selected anatomical structures.
Read more
DetailsFormat: ONNX (onnx library)
License: Apache-2.0
Training and conversion features: replacement of ConvTranspose with MatMul, reduction of 3D Conv to 2D Conv by depth slices for optimization under onnxruntime-web
Limitations: For research and educational use only, not a medical device










Comments