Downloads · 30 days
0
simontho/Swin-UNETR-Odelia
Swin-UNETR-Odelia is a image classification model from simontho. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
This repository contains the weights and inference code for an advanced Multi-Stream Vision Transformer architecture. Unlike the baseline, this model leverages the temporal dynamics of contrast-enhanced MRI and uses a…
Downloads · 30 days
0
Access
Public
Updated Apr 29, 2026
Repo size
2.6 GB
Likes
0
Public
Click a slice to open those files.
.pth2.6 GB · 100%
From the Hugging Face model README
This repository contains the weights and inference code for an advanced Multi-Stream Vision Transformer architecture. Unlike the baseline, this model leverages the temporal dynamics of contrast-enhanced MRI and uses a Swin-Transformer backbone for high-dimensional feature extraction.
MultiStreamSwin (based on MONAI Swin-UNETR).The model uses two identical Swin-UNETR backbones initialized with pre-trained weights from the BTCV dataset.
This model is designed for transparency. The inference script generates 3D Grad-CAM Heatmaps for both the structural (T2) and functional (Kinetics) inputs, allowing clinicians to visualize the features driving the prediction.
The primary metric used is ROC AUC (Area Under the Receiver Operating Analytic Curve). Detailed performance graphs and confusion matrices for the ensemble can be found in the associated GitHub Repository.
The architecture requires the MultiStreamSwin and PrepareTemporalKineticsd classes provided in the utils.py file of this repository.
import torch
from utils import MultiStreamSwin
# Initialize the Multi-Stream Transformer
model = MultiStreamSwin(num_classes=3)
# Load Fold 0 weights
model.load_state_dict(torch.load("weights/best_swin_odelia_fold0.pth", map_location="cpu"))
model.eval()
# Example: Inference on T2 and Kinetics tensors
# output = model(t2_tensor, kinetics_tensor)
This model is for research purposes only. It was trained on the ODELIA proprietary dataset. Predictions should not be used for clinical diagnosis without professional medical supervision.