Views
No views yet
pip install torch torchvision nibabel numpy1import torch
2
3model = torch.load("model.pth", map_location="cpu")
4model.eval()1import numpy as np
2
3# Example input (replace with actual preprocessing)
4input_tensor = torch.randn(1, 4, 240, 240)
5
6with torch.no_grad():
7 output = model(input_tensor)
8
9mask = output.argmax(dim=1)| Metric | Score |
|---|---|
| Dice Score (WT) | ~0.85 |
| Dice Score (TC) | ~0.80 |
| Dice Score (ET) | ~0.75 |
Note: Values may vary based on training setup