1pip install open_clip_torch nibabel torch torchvision
2
3
4##Load Pretrained Model
pred, probs = predict_from_paths(
model,
"/path/to/sample_brain.nii.gz",
"Patient shows mild memory impairment and hippocampal atrophy.",
device=device
)
python inference.py --weights . --mri /path/to/sample.nii.gz --text "Patient shows memory issues"