Closed mathpluscode closed 3 years ago
As mentioned in https://github.com/DeepRegNet/DeepReg/pull/539#issuecomment-766143980, the functionalities related to Bsplined should be a backbone-independent layer, instead of being hardcoded in backbones, https://github.com/DeepRegNet/DeepReg/blob/main/deepreg/model/backbone/u_net.py#L76.
Therefore refactoring is required as we may have more backbones in the future.
I have removed the resize+Bsplines from backbone networks and added into the ddf and dvf models. I updated the tests accordingly.
Subject of the issue
As mentioned in https://github.com/DeepRegNet/DeepReg/pull/539#issuecomment-766143980, the functionalities related to Bsplined should be a backbone-independent layer, instead of being hardcoded in backbones, https://github.com/DeepRegNet/DeepReg/blob/main/deepreg/model/backbone/u_net.py#L76.
Therefore refactoring is required as we may have more backbones in the future.