Skip to content

Commit 660ae0f

Browse files
authored
Remove extra models from CI tests for ViT (#1322)
* Remove extra models from CI tests for ViT This is consistent with how we're doing CI for other models to avoid running tons of expensive and redundant tests * Update vit_test.py * Update vit_test.py * Update vit_test.py * Update vit_test.py
1 parent 7f0ba4a commit 660ae0f

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

keras_cv/models/vit_test.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,23 @@
2020
from .models_test import ModelsTest
2121

2222
MODEL_LIST = [
23-
(vit.ViTTiny16, 192, {"input_shape": (224, 224, 3)}),
2423
(vit.ViTS16, 384, {"input_shape": (224, 224, 3)}),
25-
(vit.ViTB16, 768, {"input_shape": (224, 224, 3)}),
26-
(vit.ViTL16, 1024, {"input_shape": (224, 224, 3)}),
27-
(vit.ViTH16, 1280, {"input_shape": (224, 224, 3)}),
28-
(vit.ViTTiny32, 192, {"input_shape": (224, 224, 3)}),
29-
(vit.ViTS32, 384, {"input_shape": (224, 224, 3)}),
30-
(vit.ViTB32, 768, {"input_shape": (224, 224, 3)}),
31-
(vit.ViTL32, 1024, {"input_shape": (224, 224, 3)}),
32-
(vit.ViTH32, 1280, {"input_shape": (224, 224, 3)}),
3324
]
3425

26+
"""
27+
Below are other configurations that we omit from our CI but that can/should
28+
be tested manually when making changes to this model.
29+
(vit.ViTTiny16, 192, {"input_shape": (224, 224, 3)}),
30+
(vit.ViTB16, 768, {"input_shape": (224, 224, 3)}),
31+
(vit.ViTL16, 1024, {"input_shape": (224, 224, 3)}),
32+
(vit.ViTH16, 1280, {"input_shape": (224, 224, 3)}),
33+
(vit.ViTTiny32, 192, {"input_shape": (224, 224, 3)}),
34+
(vit.ViTS32, 384, {"input_shape": (224, 224, 3)}),
35+
(vit.ViTB32, 768, {"input_shape": (224, 224, 3)}),
36+
(vit.ViTL32, 1024, {"input_shape": (224, 224, 3)}),
37+
(vit.ViTH32, 1280, {"input_shape": (224, 224, 3)}),
38+
"""
39+
3540

3641
class ViTTest(ModelsTest, tf.test.TestCase, parameterized.TestCase):
3742
@parameterized.parameters(*MODEL_LIST)

0 commit comments

Comments
 (0)