Skip to content

Commit

Permalink
Merge pull request #644 from mlcommons/version_update_for_tagging
Browse files Browse the repository at this point in the history
Removing dev from version for tagging
  • Loading branch information
sarthakpati authored May 16, 2023
2 parents 3843f19 + 9f8658f commit 7335258
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
16 changes: 1 addition & 15 deletions GANDLF/data/augmentation/blur_enhanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,14 @@
from typing import Union, Tuple

import torch
import numpy as np
import scipy.ndimage as ndi

from torchio.typing import TypeData, TypeTripletFloat, TypeSextetFloat
from torchio.typing import TypeTripletFloat, TypeSextetFloat
from torchio.data.subject import Subject
from torchio.transforms import IntensityTransform
from torchio.transforms.augmentation import RandomTransform
from torchio.transforms.augmentation.intensity.random_blur import Blur


def blur(
data: TypeData,
spacing: TypeTripletFloat,
std_voxel: TypeTripletFloat,
) -> torch.Tensor:
assert data.ndim == 3
std_physical = np.array(std_voxel) / np.array(spacing)
blurred = ndi.gaussian_filter(data, std_physical)
tensor = torch.as_tensor(blurred)
return tensor


class RandomBlurEnhanced(RandomTransform, IntensityTransform):
r"""Blur an image using a random-sized Gaussian filter.
Expand Down
2 changes: 1 addition & 1 deletion GANDLF/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__version__ = "0.0.16-dev"
__version__ = "0.0.16"
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,23 @@ The **G**ener**a**lly **N**uanced **D**eep **L**earning **F**ramework for segmen

## Citation

Please cite the following article for GaNDLF ([full PDF](https://arxiv.org/abs/2103.01006)):

```
@misc{pati2021gandlf,
title={GaNDLF: A Generally Nuanced Deep Learning Framework for Scalable End-to-End Clinical Workflows in Medical Imaging},
author={Sarthak Pati and Siddhesh P. Thakur and Megh Bhalerao and Spyridon Thermos and Ujjwal Baid and Karol Gotkowski and Camila Gonzalez and Orhun Guley and Ibrahim Ethem Hamamci and Sezgin Er and Caleb Grenko and Brandon Edwards and Micah Sheller and Jose Agraz and Bhakti Baheti and Vishnu Bashyam and Parth Sharma and Babak Haghighi and Aimilia Gastounioti and Mark Bergman and Anirban Mukhopadhyay and Sotirios A. Tsaftaris and Bjoern Menze and Despina Kontos and Christos Davatzikos and Spyridon Bakas},
year={2021},
eprint={2103.01006},
archivePrefix={arXiv},
primaryClass={cs.LG}
Please cite the following article for GaNDLF ([full paper](https://www.nature.com/articles/s44172-023-00066-3)):

```bib
@article{pati2023gandlf,
author={Pati, Sarthak and Thakur, Siddhesh P. and Hamamc{\i}, {\.{I}}brahim Ethem and Baid, Ujjwal and Baheti, Bhakti and Bhalerao, Megh and G{\"u}ley, Orhun and Mouchtaris, Sofia and Lang, David and Thermos, Spyridon and Gotkowski, Karol and Gonz{\'a}lez, Camila and Grenko, Caleb and Getka, Alexander and Edwards, Brandon and Sheller, Micah and Wu, Junwen and Karkada, Deepthi and Panchumarthy, Ravi and Ahluwalia, Vinayak and Zou, Chunrui and Bashyam, Vishnu and Li, Yuemeng and Haghighi, Babak and Chitalia, Rhea and Abousamra, Shahira and Kurc, Tahsin M. and Gastounioti, Aimilia and Er, Sezgin and Bergman, Mark and Saltz, Joel H. and Fan, Yong and Shah, Prashant and Mukhopadhyay, Anirban and Tsaftaris, Sotirios A. and Menze, Bjoern and Davatzikos, Christos and Kontos, Despina and Karargyris, Alexandros and Umeton, Renato and Mattson, Peter and Bakas, Spyridon},
title={GaNDLF: the generally nuanced deep learning framework for scalable end-to-end clinical workflows},
journal={Communications Engineering},
year={2023},
month={May},
day={16},
volume={2},
number={1},
pages={23},
abstract={Deep Learning (DL) has the potential to optimize machine learning in both the scientific and clinical communities. However, greater expertise is required to develop DL algorithms, and the variability of implementations hinders their reproducibility, translation, and deployment. Here we present the community-driven Generally Nuanced Deep Learning Framework (GaNDLF), with the goal of lowering these barriers. GaNDLF makes the mechanism of DL development, training, and inference more stable, reproducible, interpretable, and scalable, without requiring an extensive technical background. GaNDLF aims to provide an end-to-end solution for all DL-related tasks in computational precision medicine. We demonstrate the ability of GaNDLF to analyze both radiology and histology images, with built-in support for k-fold cross-validation, data augmentation, multiple modalities and output classes. Our quantitative performance evaluation on numerous use cases, anatomies, and computational tasks supports GaNDLF as a robust application framework for deployment in clinical workflows.},
issn={2731-3395},
doi={10.1038/s44172-023-00066-3},
url={https://doi.org/10.1038/s44172-023-00066-3}
}
```

Expand Down

0 comments on commit 7335258

Please sign in to comment.