2097 CoordConv transform#2162
2097 CoordConv transform#2162wyli merged 11 commits intoProject-MONAI:devfrom marksgraham:2097_CoordConv_transform
Conversation
Signed-off-by: Mark <[email protected]>
Signed-off-by: Mark Graham <[email protected]>
Signed-off-by: Mark Graham <[email protected]>
Signed-off-by: Mark Graham <[email protected]>
|
/black |
Signed-off-by: Mark Graham <[email protected]>
|
Thanks for comments. I have:
|
|
Thanks, looks great. Since the output is a concatenation of the channels and the original image, in the unit test it might be worth checking that the first part of the image matches the original image? I suggested another update to the calculation of the coords (sorry for playing a bit of code golf!) if you want to add that too. |
Signed-off-by: Mark Graham <[email protected]>
|
Thanks - I've taken your suggestion for meshgrid (had to add |
|
Looks good to me, happy to merge once the checks are passing! |
Signed-off-by: monai-bot <[email protected]>
wyli
left a comment
There was a problem hiding this comment.
thanks! @marksgraham @rijobro
Fixes #2097 .
Description
Implements a transformation that appends spatial coordinates to the input as new channels, inspired by the CoordConv paper. Have found this improves the performance of my segmentation networks.
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage. I get a pytype error that I can't resolve - help appreciated./runtests.sh --quick --unittests.make htmlcommand in thedocs/folder.