474 Add visualise section to demo readmes#565
Conversation
Codecov Report
@@ Coverage Diff @@
## main #565 +/- ##
=======================================
Coverage 99.48% 99.48%
=======================================
Files 36 36
Lines 2131 2131
=======================================
Hits 2120 2120
Misses 11 11 Continue to review full report at Codecov.
|
|
the images are not shown correctly on RTD https://deepreg--565.org.readthedocs.build/en/565/demo/unpaired_us_prostate_cv.html because the source of these pages are not those readme, but in https://github.com/DeepRegNet/DeepReg/tree/main/docs/source/demo another comment is can you test these vis commands in demo tests? |
Thanks @mathpluscode! I have added the vis commands to the demo tests. For the RTD, I have tested a solution which works where we can simply add a copy of the images to |
Why dont we put the images under @zacbaum @YipengHu what do you think, if RTD works, it's ok that markdown on github fails? (as the RTD do not support markdown fully) |
Yup. A lot of things will never work on GitHub, files or codes. |
|
Thanks @mathpluscode @YipengHu! I have moved the demo vis assets to Would any of you be able to review this PR @mathpluscode, @YipengHu, @NMontanaBrown? |
|
@s-sd @mathpluscode can we hold off this for a few days? If you look at the registration results, for all learning-based ones, the displacement is really limited, even for the grouped mask demo. This perhaps gives a false impression that the registration does not work. I am looking at a number of demos now. If you can, can you have a look at one or two too? |
@YipengHu, good point. I will have a look at a few demos, maybe Edit: Sorry, just saw the new ticket for the |
Thanks! i's focus on the unpaired ct one, the MRUS brain is very challenging, i'm happy leaving it as is for now. |
|
Do you still need review or is this WIP? |
it is merged now. |
it's not merged? |
Sorry - wrong reply. @NMontanaBrown you can still review it, but let's wait a bit to merge. |
|
@s-sd sorry being holding this up. Now that a number of demos been updated, i think it is a good time to look at this. Could you please update (mainly images?) and I will have a look. |
d3eff89 to
d8f0fa6
Compare
|
@YipengHu @mathpluscode @NMontanaBrown something odd is happening with the |
Not sure - it could be an external bug. I would try to merge the main again see what happens, then see if the close function is necessary. |
|
Thanks @YipengHu! I merged main again and the test passes locally (using the command |
| ## Visualise | ||
|
|
||
| The following command can be executed to generate a plot of three image slices from the | ||
| the fixed image, moving image and warped image (left to right) to visualise the |
There was a problem hiding this comment.
sorry being picky, a better order would be moving, warped and fixed, such that the warped can be compared with the other two, see how much changed and how close to the target fixed.
There was a problem hiding this comment.
Good point, I'll make this change and update the images once the unit test problem is resolved
|
In PR #568, I have also updated the visualisations, which now use the updated demos and the order of images has also been updated to moving, warped, fixed. @YipengHu @mathpluscode would you be able to review this PR? |
Description
Static visualisations generated using the
deepreg_vistool have been added to the demo descriptions along with the commands used to generate them. The commands are also tested in the demo tests.Note: animated gifs were not added because they would increase the repo size a lot.
Fixes #474
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.