Views
No views yet
awsaf49/brats20-dataset-training-validation on Kaggle| Metric | NNE Tumor Core | Peritumoral Edema | Enhancing Tumor | Background |
|---|---|---|---|---|
| Dice Coefficient | 0.6448 | 0.7727 | 0.8026 | 0.9989 |
| Hausdorff95 (mm) | 7.6740 | 8.4238 | 5.0973 | 0.2464 |
1from improved_unet3d import ImprovedUNet3D
2import torch
3
4# Instantiate model
5model = ImprovedUNet3D(in_channels=4, out_channels=4, base_filters=16)
6# Load pretrained weights (if available)
7model.load_state_dict(torch.load("path/to/checkpoint.pth"))
8model.eval()
9
10# Inference on a single 3D volume
11input_volume = torch.randn(1, 4, 128, 128, 128) # example shape
12with torch.no_grad():
13 output = model(input_volume)
14# output shape: [1, 4, 128, 128, 128]