Issue #557: refactoring models#602
Conversation
Codecov Report
@@ Coverage Diff @@
## main #602 +/- ##
==========================================
+ Coverage 99.50% 99.67% +0.17%
==========================================
Files 37 33 -4
Lines 2209 2175 -34
==========================================
- Hits 2198 2168 -30
+ Misses 11 7 -4
Continue to review full report at Codecov.
|
|
ooops, as I changed the network definitions, we may not be able to load pretrained weights :( @YipengHu do you have an estimation on the time required for retraining all models? |
|
Except that I'm retraining all models to regenerate the checkpoints, as change of network architectures makes all ckpts not suitable. Therefore it would be nice/saving time if you review this starting now ^^. EDIT: actually, there have been many fixed in other PRs, this branch has to include those unmerged fixes for training models. We can come back to this later. |
@mathpluscode no, I just have it locally. Should I add it to the repo? |
Maybe? we can leave that for a separate issue. Would you mind to send me the script via mail/teams. |
d42da18 to
f2376dc
Compare
|
I guess I just realised that this branch has no conflict with #559. So it is ready to be merged before/after #559. As I didn't influence the model part. |
|
@YipengHu are you happy with my replies? @NMontanaBrown do you have any further comments :) |
all looks good to me. |
|
Let me check, one minute. |
|
Can we merge the config docs first? I am still waiting on a few comments/resolutions there. @YipengHu @mathpluscode |
There is no conflicts as this PR does not change config structure ^^. But yes, if you prefer this way. I can wait. |
Actually, yes, because affine parameter is no longer passed right? @mathpluscode |
oooops, good point. Affine model is integrated into DDF, so that DDF+GlobalNet = Affine, you are totally right! |
Also corrected some grammar errors.
|
The inspection completed: 98 new issues, 40 updated code elements |
I've updated the config docs https://deepreg--602.org.readthedocs.build/en/602/docs/configuration.html, have a look? @NMontanaBrown |
|
I have to merge this now as user has experienced a multi-gpu bug, which got solved here. |
Description
Rewrite registration models from functions to classes, and use registry.
Moreover, affine model is merged into DDF model and got test covered (it was never tested I believe)
Fixes #557
Demos need to be updated
Type of change
What types of changes does your code introduce to DeepReg?
Please check the boxes that apply after submitting the pull request.
Checklist
Please check the boxes that apply after submitting the pull request.
If you're unsure about any of them, don't hesitate to ask. We're here to help! This is
simply a reminder of what we are going to look for before merging your code.
installed pre-commit
using
pre-commit installand formatted all changed files. If you are notcertain, run
pre-commit run --all-files.our requested structure,
e.g.
Issue #<issue number>: detailed message.change log file
regarding my changes.