OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Syndiff

SynDiff is an open-source Python and PyTorch implementation of adversarial diffusion models for unsupervised medical-image translation, with training and test scripts and pretrained generators for selected MRI contrast conversions.

Independent OpenViST project profile, based on linked sources.

Syndiff — Research workflows built around aligned contrast datasets in the documented MATLAB format
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use SynDiff when a research project needs a codebase for training or testing diffusion-based medical-image contrast translation, particularly for the MRI conversions covered by its pretrained weights.

Who it is for

  • Medical-imaging researchers exploring contrast translation or synthesis.
  • Python and PyTorch users who can prepare aligned medical-image datasets and run model training or inference.

Documented uses

  • Train a model to translate between aligned medical imaging contrasts.
  • Run inference with the supplied pretrained generators for specified MRI conversions.
  • Build a research workflow for medical-image synthesis using the provided scripts.
Before you choose

Requirements & limits

The repository is public and encourages modification and distribution of the code with acknowledgement and citation of the paper.

  • The documented dataset input is a six-file set of aligned MATLAB arrays with values from 0 to 1.
  • Running the examples requires a CUDA-capable environment meeting the listed software dependencies.
  • Pretrained weights are specified for T1↔PD on IXI and T1↔T2 on BRATS; training is the documented route for other intended tasks.

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 aligned data and train a contrast-translation model

Set up the repository and provide the documented aligned dataset structure for the training script.

Before you start

  • Python 3.6.9 or later, PyTorch 1.7.1 or later, torchvision 0.8.2 or later, CUDA 11.2 or later, Ninja, and matching python3 development headers.
  • Aligned contrast data in MATLAB .mat files, shaped as (#images, width, height), with image values between 0 and 1.

Steps

  1. Clone the repository with the command below and enter the SynDiff directory.

    Documented command
    git clone https://github.com/icon-lab/SynDiff
  2. Arrange the input data as data_train_contrast1.mat, data_train_contrast2.mat, data_val_contrast1.mat, data_val_contrast2.mat, data_test_contrast1.mat, and data_test_contrast2.mat under the input path.

  3. Use the README's the command below example, setting the contrast names and input and output paths for the intended task.

    Documented command
    python3 train.py

Expected outcome

The training script is provided with the specified dataset layout and paths to train a contrast-translation model.

Guide limitations

  • The documented example uses a particular set of model parameters; other data or tasks may require adapting them.
  • The setup and recipe describe the repository instructions, not a verified training run.
Source-based practical guide

Set up inference with a supplied MRI generator

Use the documented pretrained-generator route to prepare a test-script inference run for a supported MRI contrast conversion.

Before you start

  • SynDiff's listed Python, PyTorch, torchvision, CUDA, Ninja, and Python development-header dependencies.
  • A pretrained generator for a documented conversion: T1↔PD on IXI or T1↔T2 on BRATS.
  • Input data and the generator weights.

Steps

  1. Obtain the relevant pretrained generator linked in the repository README.

  2. Save the weights in the relevant checkpoints folder.

  3. Use the README's the command below example, setting the contrast names and input and output paths for the intended test.

    Documented command
    python test.py

Expected outcome

The test script is configured to run inference with the selected pretrained generator.

Guide limitations

  • The pretrained generators are identified for the listed contrast conversions and datasets.
  • The README does not establish that other conversion tasks are supported by these weights.
  • This guide reflects repository instructions and does not claim a tested run.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
19 November 2026
Original website title
icon-lab/SynDiff · Official homepage title · retained in its source language