https://github.com/bayer-group/freggan
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org, zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.9%) to scientific vocabulary
Keywords
Repository
Basic Info
- Host: GitHub
- Owner: Bayer-Group
- License: bsd-3-clause
- Language: Python
- Default Branch: main
- Size: 1.48 MB
Statistics
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 8
- Releases: 0
Topics
Metadata Files
README.md
fRegGAN: K-space Loss Regularization for Medical Image Translation
Welcome to the official code repository for the paper "fRegGAN: K-space Loss Regularization for Medical Image Translation". The repository is dedicated to enabling researchers and developers to reproduce the results presented in our paper.
The code present in this repository is maintained by the original authors of the paper and is open to contributions, fixes, and updates from the research community.
Please note, while the preprocessed data is available, the trained models are not part of this repository. The objective of this repository is to facilitate an understanding of our methodology and to allow the research community to reproduce and validate our results.
We sincerely hope that our work contributes to your research, development, and understanding of frequency-regularized generative adversarial networks. Happy coding!

BibTeX
bibtex
@article{baltruschat2023freggan,
title={fRegGAN with K-space Loss Regularization for Medical Image Translation},
author={Ivo M. Baltruschat and Felix Kreis and Alexander Hoelscher and Melanie Dohmen and Matthias Lenga},
year={2023},
eprint={2303.15938},
archivePrefix={arXiv},
primaryClass={eess.IV}
}
Getting Started
Software dependencies
Conda as environment manager. If not installed, you can download and install Mamba with the following command:\
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" && bash Mambaforge-$(uname)-$(uname -m).shPoetry as dependency and package manager. If not installed, you can download and install the preview version with:\
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.2WandB as experiment tracking, data versioning. Using wandb requires you to setup an account first. After that just complete the config as below.
Installation process
First we need to create a conda environment and install all needed packages. This can be done manually or automatically.\
bash
conda env create -p "$PWD/.envs/cmrai_py39" --file "$PWD/docker-pytorch/environment.yml"
conda activate "$PWD/.envs/cmrai_py39"
poetry install --no-dev
export WANDB_USER=[YOUR_username]
export WANDB_KEY=[API_KEY]
export WANDB_ENTITY=[YOUR_ENTITY]
dump-env --source=.env.template > .env
Data preparation
We uploaded a preprocessed version of the BraTS2021 dataset to Zenodo here.
First, you need to download the data and then unzip the tar.gz file into the folder data.
bash
zenodo_get 8141526
tar -xzvf brats2021_nii.tar.gz -C "$PWD/data"
Then run the following commands to prepare the data.
bash
python cmrai/data/prepare_brats.py
python cmrai/data/process_brats.py --data_dim=2d
python cmrai/data/splitdata_brats.py --data_dim=2d --do_cleaning
🚀 Quickstart
bash
python cmrai/train.py experiment=paper_01_cycle_gan_00.yaml
Resources
This project was inspired by:
- ashleve/lightning-hydra-template
- PyTorchLightning/deep-learninig-project-template
- drivendata/cookiecutter-data-science
- lucmos/nn-template
- kedro-org/kedro
Useful repositories:
- pytorch/hydra-torch - safely configuring PyTorch classes with Hydra
- romesco/hydra-lightning - safely configuring PyTorch Lightning classes with Hydra
- PyTorchLightning/lightning-transformers - official Lightning Transformers repo built with Hydra
Other resources:
Owner
- Name: Bayer Open Source
- Login: Bayer-Group
- Kind: organization
- Website: https://bayer.com/
- Repositories: 98
- Profile: https://github.com/Bayer-Group
Science for a better life
GitHub Events
Total
- Member event: 1
Last Year
- Member event: 1
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ivo Baltruschat | i****t@b****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 20
- Average time to close issues: N/A
- Average time to close pull requests: 5 days
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.6
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 20
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (23)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- nvidia/cuda 11.7.0-devel-ubuntu20.04 build
- 270 dependencies