-
Notifications
You must be signed in to change notification settings - Fork 85
Issue #557: refactoring models #602
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
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d4de169
Issue #557: add ddf, dvf models
mathpluscode 8aff6bb
Issue #557: add conditional and affine model, fix predict
mathpluscode 5c0a07c
Issue #557: rewrite tests for DDF DVF models
mathpluscode 52e9569
Issue #557: add tests for conditional model
mathpluscode 020a72b
Issue #557: remove outdated code
mathpluscode 83d6db7
Issue #557: change models to use dict for input/output
mathpluscode d203343
Issue #557: fix pylint linting
mathpluscode 18ba530
Issue #557: complete network docstrings
mathpluscode c4d7fb1
Issue #557: fix affine model and test it
mathpluscode 0d94e67
Issue #557: cover get config and ignore call
mathpluscode 442876d
Issue #468: support mixed precision
mathpluscode a12c0e0
Issue #468: default not use mixed precision
mathpluscode 16a125a
Issue #557: change loss reduction strategy to fix multi-gpu training
mathpluscode c4cb904
Issue #557: fix unit tests linked to loss reduction strategy
mathpluscode 824004f
Revert "Issue #468: default not use mixed precision"
mathpluscode 2e42b23
Merge branch '615-resample-extrapolation' into 557-refactoring-models
mathpluscode f597085
Merge remote-tracking branch 'origin/main' into 557-refactoring-models
mathpluscode 1f87e26
Issue #557: update grouped prostate ckpt
mathpluscode 24d9017
Merge branch '617-refactoring-of-data-augmentation' into 557-refactor…
mathpluscode a136d59
Issue #557: do not reserve all GPU memory in demos
mathpluscode 140c53a
Issue #557: update grouped mr heart ckpt
mathpluscode 07c660a
Merge remote-tracking branch 'origin/main' into 557-refactoring-models
mathpluscode e052b99
Issue #557: update paired mrus prostate
mathpluscode 4cb53d0
Merge remote-tracking branch 'origin/main' into 557-refactoring-models
mathpluscode 95a61fd
Issue #557: update paired ct lung checkpoint
mathpluscode 557a6dc
Revert "Issue #557: update paired ct lung checkpoint"
mathpluscode c38aa9c
Issue #557: update paired ct lung ckpt
mathpluscode c2adf2e
Issue #557: update unpaired us prostate
mathpluscode d8fee7b
Issue #557: update unpaired ct lung
mathpluscode f2376dc
Issue #557: update ckpt paths
mathpluscode 98e5943
Merge remote-tracking branch 'origin/main' into 557-refactoring-models
mathpluscode 32ff565
Issue #557: update demo visualization and add warning notes
mathpluscode 8ff134d
Merge remote-tracking branch 'origin/main' into 557-refactoring-models
mathpluscode e9db939
Issue #557: make loss building more robust
mathpluscode 9841cff
Issue #557: adjust config doc regarding changes
mathpluscode 839c4ab
Issue #557: replace strange space tokens
mathpluscode c5a4419
Issue #557: use deepcopy instead of naive copy
mathpluscode f63dd8f
Issue #557: add tests for build loss
mathpluscode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| train: | ||
| method: "ddf" # ddf / dvf / conditional | ||
| backbone: | ||
| name: "global" | ||
| num_channel_initial: 1 | ||
| extract_levels: [0, 1, 2, 3, 4] | ||
| loss: | ||
| image: | ||
| name: "lncc" | ||
| weight: 0.1 | ||
| label: | ||
| weight: 1.0 | ||
| name: "dice" | ||
| scales: [0, 1, 2, 4, 8, 16, 32] | ||
| regularization: | ||
| weight: 0.5 | ||
| name: "bending" | ||
| preprocess: | ||
| batch_size: 2 | ||
| shuffle_buffer_num_batch: 1 | ||
| optimizer: | ||
| name: "adam" | ||
| adam: | ||
| learning_rate: 1.0e-5 | ||
| sgd: | ||
| learning_rate: 1.0e-4 | ||
| momentum: 0.9 | ||
| rms: | ||
| learning_rate: 1.0e-4 | ||
| momentum: 0.9 | ||
| epochs: 2 | ||
| save_period: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # flake8: noqa | ||
| import deepreg.model.backbone | ||
| import deepreg.model.loss | ||
| import deepreg.model.network |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.