Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RangiLyu committed Jul 17, 2021
1 parent b48e619 commit 5c06d4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_models/test_fpn/test_fpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def test_fpn():
outs = fpn_model(feats)
assert len(outs) == fpn_model.num_outs
for i in range(fpn_model.num_outs):
outs[i].shape[1] == out_channels
outs[i].shape[2] == outs[i].shape[3] == s // (2 ** i)
assert outs[i].shape[1] == out_channels
assert outs[i].shape[2] == outs[i].shape[3] == s // (2 ** (i + 1))
4 changes: 2 additions & 2 deletions tests/test_models/test_fpn/test_pan.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def test_pan():
outs = pan_model(feats)
assert len(outs) == pan_model.num_outs
for i in range(pan_model.num_outs):
outs[i].shape[1] == out_channels
outs[i].shape[2] == outs[i].shape[3] == s // (2 ** i)
assert outs[i].shape[1] == out_channels
assert outs[i].shape[2] == outs[i].shape[3] == s // (2 ** (i + 1))
4 changes: 2 additions & 2 deletions tests/test_models/test_fpn/test_tan.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ def test_tan():
outs = pan_model(feats)
assert len(outs) == 3
for i in range(3):
outs[i].shape[1] == out_channels
outs[i].shape[2] == outs[i].shape[3] == s // (2 ** i)
assert outs[i].shape[1] == out_channels
assert outs[i].shape[2] == outs[i].shape[3] == s // (2 ** i)

0 comments on commit 5c06d4b

Please sign in to comment.