CT2MRI
[MICCAI 2024 Early Acceptance] Official Pytorch Code for Slice-Consistent 3D Volumetric Brain CT-to-MRI Translation with 2D Brownian Bridge Diffusion Model
Install / Use
/learn @MICV-yonsei/CT2MRIREADME
Slice-Consistent 3D Volumetric Brain CT-to-MRI Translation with 2D Brownian Bridge Diffusion Model
Early accepted at MICCAI 2024
[Project Page] [paper] [arXiv]
Requirements
conda env create -f environment.yml
conda activate ct2mri
Dataset Preparation
For datasets from BraTS2023 that include paired multi-modal MRI images, your dataset directory should be structured as follows:
- training set: /root_dir/BraTS/ASNR-MICCAI-BraTS2023-GLI-Challenge-TrainingData
- validation set: /root_dir/BraTS/ASNR-MICCAI-BraTS2023-GLI-Challenge-ValidationData
To create an HDF5 file for efficient data loading, run the following command:
sh shell/data/make_hdf5_BraTS.sh
To generate a histogram dataset (in .pkl format) for Style Key Conditioning (SKC), execute the command below:
sh shell/data/make_hist_dataset_BraTS.sh
For custom CT-MR datasets, ensure to modify the data_dir and data_csv arguments in the make_hdf5.sh script to match your custom dataset paths:
sh shell/data/make_hdf5.sh
To generate a histogram dataset (in .pkl format) for Style Key Conditioning (SKC) with a custom CT-MR dataset, modify the data_dir and data_csv arguments in the make_hist_dataset.sh script to match your custom dataset paths:
sh shell/data/make_hist_dataset.sh
Training
For training with the BraTS dataset:
sh shell/train/train_BraTS.sh
For training with a custom CT-MR dataset, use the following command:
sh shell/train/train.sh
Testing
For testing with the BraTS dataset:
sh shell/train/test_BraTS.sh
For testing with a custom CT-MR dataset, use the following command:
sh shell/train/test.sh
Acknowledgement
Our code was implemented based on the code from BBDM. We are grateful to Bo Li, Kai-Tao Xue, et al.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
