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

Gan Mri

Gan Mri is a Python research repository for training CycleGAN and UNIT models to translate between multi-contrast MRI image domains and generate synthetic images, including T1-to-T2 and T2-to-T1 examples. It documents local dataset organization, model training scripts, and separate instructions for image generation.

Independent OpenViST project profile, based on linked sources.

Gan Mri — Research experiments on T1-to-T2 or T2-to-T1 image translation
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you have two MRI image domains organized for training and testing and want to explore model-based translation between them.

Who it is for

  • MRI researchers exploring synthetic cross-contrast image translation.
  • Practitioners comparing CycleGAN and UNIT workflows on multi-contrast MR image datasets.

Documented uses

  • Organize two MRI contrast domains into training and test sets.
  • Start CycleGAN or UNIT training on a prepared dataset.
  • Generate synthetic images using the model-specific instructions.
  • Compare generated examples with ground-truth scans.
Before you choose

Requirements & limits

The public repository is open source under the GPL-3.0 license.

  • The repository supports two documented model choices: CycleGAN and UNIT.
  • Dataset folders and the image_folder parameter must be prepared as described before training.
  • Image generation has separate instructions in each model’s generate_images directory.
  • The repository includes example comparisons with ground-truth images; these examples do not establish clinical suitability.

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 MRI domains and start model training

Arrange two MRI image domains for training and testing, then launch either CycleGAN or UNIT training.

Before you start

  • A local dataset for two image domains.
  • The Gan Mri repository and Python environment; the README documents Python scripts but does not specify environment setup.

Steps

  1. Place the dataset under the data directory inside the CycleGAN or UNIT folder.

  2. Create data/Dataset-name/trainA, trainB, testA, and testB directories.

  3. Set the dataset name as the image_folder parameter in the model initialization function.

  4. From the relevant model folder, run the command below or the command below.

    Documented command
    python CycleGAN.py
    Documented command
    python UNIT.py

Expected outcome

The selected model’s training process is started on the prepared dataset.

Guide limitations

  • Synthetic image generation is described separately in CycleGAN/generate_images/ReadMe.md or UNIT/generate_images/ReadMe.md; this guide does not cover that stage.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
28 November 2026
Original website title
simontomaskarlsson/GAN-MRI · Official homepage title · retained in its source language