DeepRegNet / DeepReg

Medical image registration using deep learning
Apache License 2.0
564 stars 76 forks source link

Define loss via compile #715

Closed mathpluscode closed 3 years ago

mathpluscode commented 3 years ago

Subject of the issue

https://github.com/voxelmorph/voxelmorph/blob/5d4879b711c663eb30dd90141342041eec9eea23/src/datagenerators.py#L13

We may want to add loss like this, it's cleaner. For DDF, we can simply pass zeros as targets.

Current implementation generates ugly compute graph.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.