Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amyeroberts committed Nov 21, 2023
1 parent a3d29fe commit 2e1efaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_backbone_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ def test_backbone_stage_selection(self):

outputs = backbone(**inputs_dict)
self.assertIsInstance(outputs.feature_maps, tuple)

if len(set(backbone.out_feature_channels.values())) == 1:
# Output shape of feature map is the same for all stages so we cannot verify the
# order of the feature maps
continue

# Channels from iterating over stage_names should not be the same as iterating over
# out_features.
# Stage names are in order and have no repitions, wheras backbone.channels follows out_featurs
Expand Down

0 comments on commit 2e1efaf

Please sign in to comment.