Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add SFSegNet head #733

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add returns in sfnet head
  • Loading branch information
MengzhangLI committed Jul 29, 2021
commit a0c666b5958c3c899053ea58bec36d77b173cfc7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_base_ = './sfnet_r50-d8_512x1024_80k_cityscapes.py'
_base_ = './sfnet_r50-d32_512x1024_80k_cityscapes.py'
model = dict(
pretrained='open-mmlab://resnet18_v1c',
backbone=dict(depth=18),
Expand Down
9 changes: 7 additions & 2 deletions mmseg/models/decode_heads/sfnet_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,15 @@ def flow_warp(self, input, flow, size):

Args:
input (Tensor): High Resolution Feature Map.
flow (Tensor): Semantic Flow Field that will give dynamic
indication about how to align these two feature maps effectively.
flow (Tensor): Semantic Flow Field that will give
dynamic indication about how to align these
two feature maps effectively.
size (Tuple): Shape of height and width of output.

Returns:
output (Tensor): High Resolution Feature Map after
warped offset and bilinear interpolation.

For example, in cityscapes 1024x2048 dataset with ResNet18 config,
feature map from backbone is:
[[1, 64, 256, 512],
Expand Down