Downloads · 30 days
0
grpvam/brats-2025-inpainting-model
brats-2025-inpainting-model is a image-to-image model from grpvam. Use it when you need one image transformed into another. It is set up for pytorch. The card lists the license as apache-2.0.
This is an improved 3D U-Net model trained for brain tissue inpainting as part of the BraTS 2025 challenge. The model uses attention mechanisms and residual connections to reconstruct healthy brain tissue in regions a…
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Repo size
172 MB
Likes
0
Public
Click a slice to open those files.
.ckpt172 MB · 100%
From the Hugging Face model README
This is an improved 3D U-Net model trained for brain tissue inpainting as part of the BraTS 2025 challenge. The model uses attention mechanisms and residual connections to reconstruct healthy brain tissue in regions affected by pathology.
import torch
from improved_model import ImprovedPix2Pix3D
# Load checkpoint
checkpoint = torch.load("last.ckpt", map_location='cpu')
model = ImprovedPix2Pix3D(**checkpoint['hyper_parameters'])
model.load_state_dict(checkpoint['state_dict'])
model.eval()
# Inference
with torch.no_grad():
output = model(voided_image, mask)
The model was trained to minimize:
last.ckpt: Complete model checkpoint with weights and hyperparametersimproved_model.py: Model architecture codeApache 2.0