Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradicon codestyle fix #16

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f29536f
Update train.py
HastingsGreer Sep 23, 2022
a2e64ee
Update register_fives.rst (#47)
HastingsGreer Oct 4, 2022
a47a38a
Brain evaluation (#48)
HastingsGreer Oct 4, 2022
6a196aa
Update README.md
HastingsGreer Nov 15, 2022
66a7238
Update README.md
HastingsGreer Nov 15, 2022
763ff20
new_experiments (#52)
HastingsGreer Nov 29, 2022
123146e
pip release 1.1
HastingsGreer Nov 29, 2022
752532f
Update test_brain_itk.py
HastingsGreer Dec 2, 2022
343762c
make sure we aren't scaling a signed short image to [0, 1) (#53)
HastingsGreer Dec 21, 2022
89ce87c
Add multichanel support (#54)
lintian-a Jan 11, 2023
e64ffe0
Refactor cvpr code to accomondate the new similarity interface: Simil…
lintian-a Jan 28, 2023
0460a3c
1.Update the test set.
lintian-a Jan 28, 2023
1c91258
The evaluation scripts of ants and gradicon were saved locally. Now c…
lintian-a Jan 28, 2023
57635f2
Move the initialization of footsteps ahead to prevent the multiple in…
lintian-a Jan 29, 2023
17c9c4b
Merge pull request #56 from uncbiag/HCP_fix
HastingsGreer Feb 13, 2023
8dd6b49
remove unneeded check (#57)
HastingsGreer Feb 20, 2023
10f2808
Update README.md (#58)
lintian-a Feb 28, 2023
6b27670
EHN: Change predefined image types for input images
curiale Mar 15, 2023
fe441b4
vendor_gaussian_kernel
HastingsGreer Apr 25, 2023
770256d
Update losses.py
HastingsGreer Apr 25, 2023
dc0a850
Merge pull request #61 from uncbiag/vendor_gaussian_kernel
HastingsGreer Apr 25, 2023
ac39bcd
Add files via upload
HastingsGreer Apr 27, 2023
cd5d56e
Merge pull request #59 from curiale/master
HastingsGreer May 9, 2023
f59eba0
fix shallow copy bug
HastingsGreer May 10, 2023
2ef1710
Update losses.py
HastingsGreer May 10, 2023
e7e4604
Update lung_ct.py
HastingsGreer May 10, 2023
0b9361a
Update losses.py
HastingsGreer May 10, 2023
f6d212a
Update losses.py
HastingsGreer May 10, 2023
66ad084
Merge pull request #63 from uncbiag/reduce_memory_footprint
HastingsGreer May 12, 2023
7ffed36
release
HastingsGreer Dec 8, 2023
ab63d8d
1.1.2
HastingsGreer Dec 8, 2023
50d2cba
Merge pull request #65 from uncbiag/pip-update-1.1.2
HastingsGreer Dec 8, 2023
8dee552
Update losses.py
HastingsGreer Feb 3, 2024
f23a698
Merge pull request #67 from uncbiag/nanfix
HastingsGreer Feb 3, 2024
a9373c4
Allow itk 5.4 (enables python 3.12)
HastingsGreer Mar 15, 2024
2302339
pypi version bump
HastingsGreer Mar 15, 2024
6c13d48
fix rtd theme error
HastingsGreer Apr 13, 2024
4beb7e3
Make dx, dy, dz consistent (eliminates broadcasting)
HastingsGreer Apr 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/cpu-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
results/
evaluation_results/
network_weights/
__pycache__/
*.swp
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:

jobs:
post_install:
- pip install monai
- pip install monai sphinx-rtd-theme
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _ICCV 2021_ https://arxiv.org/abs/2105.04459

**GradICON: Approximate Diffeomorphisms via Gradient Inverse Consistency.**
Lin Tian, Hastings Greer, Francois-Xavier Vialard, Roland Kwitt, Raúl San José Estépar, Marc Niethammer.
_Arxiv preprint_ https://arxiv.org/abs/2206.05897
_CVPR 2023_ https://arxiv.org/abs/2206.05897

## Cite this work
```
Expand All @@ -29,6 +29,7 @@ _Arxiv preprint_ https://arxiv.org/abs/2206.05897
pages = {3396-3405}
}
```

```
@article{Tian_2022_arXiv,
title={GradICON: Approximate Diffeomorphisms via Gradient Inverse Consistency},
Expand Down
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@


def line_number(info):
# linkcode gets angry about namedtuple lol
if "ICONLoss" in info["fullname"]:
return 22
if "BendingLoss" in info["fullname"]:
return 235
mod = icon_registration
for elem in info["module"].split(".")[1:]:
mod = getattr(mod, elem)
Expand Down
8 changes: 8 additions & 0 deletions docs/source/icon_registration.pretrained_models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ icon\_registration.pretrained\_models.lung_ct
:undoc-members:
:show-inheritance:

icon\_registration.pretrained\_models.HCP_brain
-------------------------------------------------------

.. automodule:: icon_registration.pretrained_models.HCP_brain
:members:
:undoc-members:
:show-inheritance:

3 changes: 3 additions & 0 deletions docs/source/register_fives.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Get Started: Register MNIST 5s
==============================

The code in this tutorial is available as a `colab notebook <https://colab.research.google.com/drive/1Tu1w4DFEVUQM7wON4rY-nx97KTUq8ttR?usp=sharing>`_

To learn to use ICON, we will train a model that registers pictures of the number 5 from the MNIST dataset.

First create and activate some sort of virtual environment, and install torch into it `going by the official instructions <https://pytorch.org/get-started/locally/>`_
Expand Down Expand Up @@ -32,6 +34,7 @@ Next, create a git repo and import the code we need from `icon`.
import numpy as np
import torch
import torchvision.utils
import matplotlib.pyplot as plt


The function :func:`icon_registration.data.get_dataset_mnist` will give as a dataset of digits from MNIST filtered to only one number: this is useful for registration experiments, since there is a correct semantic map between two pictures of 5, but not between 5 and 8.
Expand Down
Loading
Loading