DiamondGAN: GAN used for multimodal translation in medical imaging from MRI T1, T2 to MRI FLAIR, DIR
Project description
DiamondGAN
Tensorflow implementation of DiamondGAN.
The pre-trained generator is provided, which is trained to translate the MRI brain from T1&T2 to FLAIR&DIR.
Requirement
numpy
tensorflow
tensorflow_addons
SimpleITK
Usage
Command line
python model.py --input_dir INPUT_DIR --output_dir OUTPUT_DIR --model_path MODEL_PATH
- The INPUT_DIR contains a collection of directories. Each directory should contain t1.nii.gz, t1_bet_mask.nii.gz, t2.nii.gz.
- The generated FLAIR and DIR images would store in the OUTPUT_DIR and named as syn_flair.nii.gz and syn_dir.nii.gz
- The MODEL_PATH should be the pre-trained model file, which can be downloaded in the link
Python
from DiamondGAN.model import Generator
Generator(input_dir=INPUT_DIR, output_dir=OUTPUT_DIR, model_path=MODEL_PATH)
Notice
If you download the repository through PyPI, you may need to download the pre-trained model under the link and put it under the sys.prefix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file DiamondGAN-0.0.tar.gz
.
File metadata
- Download URL: DiamondGAN-0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efdbcce35e837fae8dacbc7db2f071058985dd248058cc93ca31761d2d71d92e |
|
MD5 | 92bdc92ecc9415f9868a523161f3db91 |
|
BLAKE2b-256 | cb9efa719636299e167631224f5ef41bfff65127166a0dda23c8b0e114253eaf |