mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
add unit test for sep_fcn_head: debug 3
This commit is contained in:
parent
0466908ff2
commit
03ca449baa
@ -551,7 +551,7 @@ def test_sep_fcn_head():
|
|||||||
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='SyncBN', 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)
|
||||||
assert not head.concat_input
|
assert not head.concat_input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user