Sign inSign up

mahdisabetkish/brainssl-infer

By mahdisabetkish

•Updated 10 days ago

Rust inference binary for the brainssl segmentation and connectome models (ONNX Runtime).

Image
0

261

mahdisabetkish/brainssl-infer repository overview

⁠brainssl-infer

A small Rust binary that runs both brainssl models without Python, on ONNX Runtime: tumour segmentation from four-contrast MRI, and autism classification from ROI time series.

Source and documentation: https://github.com/mahdisabetkish/brainssl⁠ (folder rust/). Models: https://huggingface.co/mahdisabetkish⁠

⁠Use

docker pull mahdisabetkish/brainssl-infer
docker run --rm -v "$PWD:/data" mahdisabetkish/brainssl-infer segment     --model /models/segmentation --input /data/scan.nii.gz --output /data/scan_seg.nii.gz

The image is about 40 MB. It does the preprocessing around each network (midline search, symmetric crop, sliding windows, mirror averaging for segmentation; Ledoit-Wolf, matrix logarithm and window averaging for connectomes) and was checked against the Python pipeline. Research use only, not a medical device.

Tag summary

Content type

Image

Digest

sha256:083050858…

Size

78.1 MB

Last updated

10 days ago

docker pull mahdisabetkish/brainssl-infer