resnet: fully convolutional #2124
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow up to #2115 to implement the fully convolutional ResNet [1]. This is basically a cleanup of #190 taking the new API into account.
The segmentation result marginally differs compared to the old PR (#2115).
Input:

Original segmentation:

Output with this PR + #2115 (

models.resnet34(fully_conv=True, replace_stride_with_dilation=[8, 8, 8])
):However, the
replace_stride_with_dilation
increases the inference time quite a lot.[1] Pakhomov D., Premachandran V., Allan M., Azizian M., Navab N. (2019) Deep Residual Learning for Instrument Segmentation in Robotic Surgery. In: Suk HI., Liu M., Yan P., Lian C. (eds) Machine Learning in Medical Imaging. MLMI 2019. Lecture Notes in Computer Science, vol 11861. Springer, Cham