OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Vt Unet

Vt Unet is a public Python and PyTorch research implementation of VT-UNet, a volumetric transformer for 3D medical image segmentation, including tumor MRI data. Its repository includes configuration files and instructions for preparing the BraTS dataset, preprocessing it, training model variants and generating predictions.

Independent OpenViST project profile, based on linked sources.

Vt Unet — Reproducing the repository’s BraTS-based 3D tumor segmentation workflow
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Create a DATASET folder under VTUNet and place the downloaded BraTS dataset under DATASET/vtunet_raw/vtunet_raw_data.

  2. Rename the dataset folder to Task03_tumor and move dataset.json into that folder.

  3. Set the three documented data and results environment variables in ~/.bashrc, then source ~/.bashrc.

  4. Create and activate a Python 3.8 virtual environment; install the specified PyTorch 1.10.2 CUDA 11.3 packages and the other requirements.

  5. 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.
Source-based practical guide

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

  1. Change to the documented Task003_tumor directory containing imagesTs.

  2. 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.

  3. 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.
Evidence and transparency

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