add unit test for sep_fcn_head: debug 3

This commit is contained in:
johnzja 2020-08-12 10:28:03 +08:00
parent 0466908ff2
commit 03ca449baa

View File

@ -551,7 +551,7 @@ def test_sep_fcn_head():
num_classes=19,
in_index=-1,
norm_cfg=dict(type='SyncBN', requires_grad=True, momentum=0.01))
x = torch.rand(2, 128, 32, 32)
x = [torch.rand(2, 128, 32, 32)]
output = head(x)
assert output.shape == (2, head.num_classes, 32, 32)
assert not head.concat_input