Skip to content

Commit b660012

Browse files
authoredMar 27, 2024
Adds transforms for 3D data (#272)
* Refactor transforms to work for 3d data * Add some transforms * Update README.rst
1 parent 05cb54f commit b660012

20 files changed

+616
-165
lines changed
 

‎README.rst

+35-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
1-
.. image:: https://joss.theoj.org/papers/10.21105/joss.04278/status.svg
2-
:target: https://doi.org/10.21105/joss.04278
1+
.. raw:: html
2+
3+
<div align="center">
4+
<img src="https://github.com/NKI-AI/direct/assets/71031687/14ce8234-7ef1-4e32-84c6-966dc393e7ca" width="400"/>
5+
<br>
6+
<figcaption margin-top:10px; font-size:24px !important; font-weight:bold !important;">DIRECT: Deep Image REConstruction Toolkit</figcaption>
37
4-
.. image:: https://github.com/NKI-AI/direct/actions/workflows/tox.yml/badge.svg
5-
:target: https://github.com/NKI-AI/direct/actions/workflows/tox.yml
6-
:alt: tox
8+
</div>
9+
10+
.. raw:: html
711
8-
.. image:: https://github.com/NKI-AI/direct/actions/workflows/pylint.yml/badge.svg
9-
:target: https://github.com/NKI-AI/direct/actions/workflows/pylint.yml
10-
:alt: pylint
12+
<div align="center">
1113
12-
.. image:: https://github.com/NKI-AI/direct/actions/workflows/black.yml/badge.svg
13-
:target: https://github.com/NKI-AI/direct/actions/workflows/black.yml
14-
:alt: black
14+
<br />
15+
16+
<a href="https://doi.org/10.21105/joss.04278">
17+
<img src="https://joss.theoj.org/papers/10.21105/joss.04278/status.svg" alt="JOSS"></a>
18+
<a href="https://github.com/NKI-AI/direct/actions/workflows/tox.yml">
19+
<img src="https://github.com/NKI-AI/direct/actions/workflows/tox.yml/badge.svg" alt="TOX"></a>
20+
<a href="https://github.com/NKI-AI/direct/actions/workflows/pylint.yml">
21+
<img src="https://github.com/NKI-AI/direct/actions/workflows/pylint.yml/badge.svg" alt="Pylint"></a>
22+
<a href="https://github.com/NKI-AI/direct/actions/workflows/black.yml">
23+
<img src="https://github.com/NKI-AI/direct/actions/workflows/black.yml/badge.svg" alt="Black"></a>
24+
<a href="https://app.codacy.com/gh/NKI-AI/direct?utm_source=github.com&utm_medium=referral&utm_content=NKI-AI/direct&utm_campaign=Badge_Grade_Settings">
25+
<img src="https://api.codacy.com/project/badge/Grade/1c55d497dead4df69d6f256da51c98b7" alt="Codacy"></a>
26+
<a href="https://codecov.io/gh/NKI-AI/direct">
27+
<img src="https://codecov.io/gh/NKI-AI/direct/branch/main/graph/badge.svg?token=STYAUFCKJY" alt="Codecov"></a>
1528
16-
.. image:: https://api.codacy.com/project/badge/Grade/1c55d497dead4df69d6f256da51c98b7
17-
:target: https://app.codacy.com/gh/NKI-AI/direct?utm_source=github.com&utm_medium=referral&utm_content=NKI-AI/direct&utm_campaign=Badge_Grade_Settings
18-
:alt: codacy
29+
</div>
1930
20-
.. image:: https://codecov.io/gh/NKI-AI/direct/branch/main/graph/badge.svg?token=STYAUFCKJY
21-
:target: https://codecov.io/gh/NKI-AI/direct
22-
:alt: codecov
31+
<p align="center">
32+
<a href="https://docs.aiforoncology.nl/direct/installation.html">Installation</a> •
33+
<a href="https://docs.aiforoncology.nl/direct/getting_started.html">Quick Start</a> •
34+
<a href="https://docs.aiforoncology.nl/direct/index.html">Documentation</a> •
35+
<a href="https://docs.aiforoncology.nl/direct/model_zoo.html">Model Zoo</a> <br>
36+
</p>
2337
38+
<br />
2439
25-
DIRECT: Deep Image REConstruction Toolkit
26-
=========================================
2740
2841
``DIRECT`` is a Python, end-to-end pipeline for solving Inverse Problems emerging in Imaging Processing.
2942
It is built with PyTorch and stores state-of-the-art Deep Learning imaging inverse problem solvers such as denoising, dealiasing and reconstruction.
@@ -40,10 +53,6 @@ For a full list of the baselines currently implemented in DIRECT see `here <#bas
4053
4154
4255
43-
Installation and Quick Start
44-
----------------------------
45-
46-
Check out the `documentation <https://docs.aiforoncology.nl/direct>`_ for installation and a quick start.
4756
4857
Projects
4958
--------
@@ -59,12 +68,14 @@ License and usage
5968
6069
DIRECT is not intended for clinical use. DIRECT is released under the `Apache 2.0 License <LICENSE>`_.
6170
71+
6272
Citing DIRECT
6373
-------------
6474
6575
If you use DIRECT in your own research, or want to refer to baseline results published in the `DIRECT Model Zoo <model_zoo.rst>`_\ , please use the following BiBTeX entry:
6676
67-
.. code-block:: BibTeX
77+
78+
.. code-block:: text
6879
6980
@article{DIRECTTOOLKIT,
7081
doi = {10.21105/joss.04278},

‎direct/data/datasets_config.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class RandomAugmentationTransformsConfig(BaseConfig):
3636
random_rotation_probability: float = 0.0
3737
random_flip_type: Optional[str] = "random"
3838
random_flip_probability: float = 0.0
39+
random_reverse_probability: float = 0.0
3940

4041

4142
@dataclass

0 commit comments

Comments
 (0)