Practical overview
When it fits
Use it when you need a code-based research workflow for training or running VT-UNet on prepared 3D tumor MRI data, and can work with its specified Python, PyTorch and CUDA setup.
Who it is for
- Medical-imaging researchers reproducing or adapting a 3D tumor-segmentation workflow.
- Python and PyTorch users who can manage a local Linux-oriented machine-learning environment and prepared volumetric data.
Documented uses
- Arrange the specified BraTS dataset folder structure and preprocess data for VT-UNet.
- Train the documented tumor-segmentation model configurations.
- Generate predictions for test images using the documented command-line workflow.
Requirements & limits
The repository is public and lists an MIT license. The README links VT-UNet-S weights for fold 0; it says VT-UNet-B weights are to be updated.
- The README’s example environment specifies Ubuntu, Python 3.8 and PyTorch 1.10.2 CUDA 11.3 packages.
- The documented workflow targets the BraTS dataset and uses particular folder names, task IDs and model configurations.
- The README provides VT-UNet-S weights for fold 0 but does not list VT-UNet-B weights as ready to download.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare BraTS data and install the environment
Set up the documented dataset layout and Python environment for the VT-UNet workflow.
Before you start
- Ubuntu is the system named in the README as the original environment.
- Python 3.8 virtual environment.
- Medical Segmentation Decathlon BraTS dataset.
- Swin-T pretrained weights and the repository’s requirements file.
Steps
Create a DATASET folder under VTUNet and place the downloaded BraTS dataset under DATASET/vtunet_raw/vtunet_raw_data.
Rename the dataset folder to Task03_tumor and move dataset.json into that folder.
Set the three documented data and results environment variables in ~/.bashrc, then source ~/.bashrc.
Create and activate a Python 3.8 virtual environment; install the specified PyTorch 1.10.2 CUDA 11.3 packages and the other requirements.
From the VTUNet directory, install the project in editable mode, then run vtunet_convert_decathlon_task and vtunet_plan_and_preprocess with the documented dataset path and task number.
Expected outcome
The documented dataset structure and preprocessing stage are prepared for the subsequent training workflow.
Guide limitations
- The README’s example paths assume a particular local directory layout and must correspond to the user’s setup.
- The instructions specify an original Ubuntu environment and particular Python and PyTorch package versions; they do not establish compatibility with other setups.
Run prediction on prepared test images
Generate VT-UNet tumor-segmentation predictions for the documented test-image folder.
Before you start
- The repository environment and data paths are prepared.
- Test images are available in the documented imagesTs folder.
- The README’s prediction command specifies CUDA_VISIBLE_DEVICES=0 and model fold 0.
Steps
Change to the documented Task003_tumor directory containing imagesTs.
Run vtunet_predict with imagesTs as input, inferTs/vtunet_tumor as output, the 3d_fullres model, task 3, fold 0, model_best checkpoint and vtunetTrainerV2_vtunet_tumor trainer.
Run python vtunet/inference_tumor.py vtunet_tumor as shown in the README.
Expected outcome
The documented workflow writes predictions to inferTs/vtunet_tumor and passes the named prediction output to the inference script.
Guide limitations
- The guide follows the repository’s example paths and named model configuration.
- The README does not establish that the commands have been tested on other hardware or environments.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 21 November 2026
- Original website title
- himashi92/VT-UNet · Official homepage title · retained in its source language

