Skip to content

Commit

Permalink
fix shape in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLandup0 committed Oct 20, 2024
1 parent 225942d commit c7a6166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keras_hub/src/models/mit/mit_backbone_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MiTBackboneTest(TestCase):
def setUp(self):
self.init_kwargs = {
"depths": [2, 2],
"image_shape": (16, 16, 3),
"image_shape": (32, 32, 3),
"hidden_dims": [4, 8],
"num_layers": 2,
"blockwise_num_heads": [1, 2],
Expand All @@ -18,7 +18,7 @@ def setUp(self):
"patch_sizes": [7, 3],
"strides": [4, 2],
}
self.input_size = 16
self.input_size = 32
self.input_data = np.ones(
(2, self.input_size, self.input_size, 3), dtype="float32"
)
Expand All @@ -28,9 +28,9 @@ def test_backbone_basics(self):
cls=MiTBackbone,
init_kwargs=self.init_kwargs,
input_data=self.input_data,
expected_output_shape=(2, 2, 2, 8),
expected_output_shape=(2, 4, 4, 8),
expected_pyramid_output_keys=["P1", "P2"],
expected_pyramid_image_sizes=[(4, 4), (2, 2)],
expected_pyramid_image_sizes=[(8, 8), (4, 4)],
run_quantization_check=False,
run_mixed_precision_check=False,
run_data_format_check=False,
Expand Down

0 comments on commit c7a6166

Please sign in to comment.