add unit test for sep_fcn_head: debug 4
parent
03ca449baa
commit
c89674d6cb
|
@ -550,7 +550,7 @@ def test_sep_fcn_head():
|
||||||
concat_input=False,
|
concat_input=False,
|
||||||
num_classes=19,
|
num_classes=19,
|
||||||
in_index=-1,
|
in_index=-1,
|
||||||
norm_cfg=dict(type='SyncBN', requires_grad=True, momentum=0.01))
|
norm_cfg=dict(type='BN', requires_grad=True, momentum=0.01))
|
||||||
x = [torch.rand(2, 128, 32, 32)]
|
x = [torch.rand(2, 128, 32, 32)]
|
||||||
output = head(x)
|
output = head(x)
|
||||||
assert output.shape == (2, head.num_classes, 32, 32)
|
assert output.shape == (2, head.num_classes, 32, 32)
|
||||||
|
|
Loading…
Reference in New Issue