Skip to content

Commit e951d5f

Browse files
authored
Merge pull request #1716 from roboflow/fix-exp-tests
Fix exp integration tests / re-enable clip baseline tests
2 parents ff184a0 + 9394e56 commit e951d5f

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

inference_experimental/tests/integration_tests/e2e/test_clip_e2e.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ def clip_model_name() -> str:
1818
return "RN50"
1919

2020

21-
@pytest.mark.skip(
22-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
23-
)
2421
@pytest.fixture(scope="module")
2522
def baseline_clip_model(clip_model_name: str):
2623
original_clip_dir = os.path.join(ASSETS_DIR, "original_clip")
@@ -81,9 +78,6 @@ def clip_onnx_wrapper_small_batch(clip_model_name: str) -> AutoModel:
8178
return _get_clip_onnx_wrapper(clip_model_name=clip_model_name, max_batch_size=2)
8279

8380

84-
@pytest.mark.skip(
85-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
86-
)
8781
def _test_clip_wrapper_vs_baseline_for_image_embeddings(
8882
clip_wrapper,
8983
baseline_clip_model,
@@ -110,9 +104,6 @@ def _test_clip_wrapper_vs_baseline_for_image_embeddings(
110104
assert similarity.item() > 0.99
111105

112106

113-
@pytest.mark.skip(
114-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
115-
)
116107
@pytest.mark.e2e_model_inference
117108
@pytest.mark.parametrize("image_shape", [(224, 224), (320, 240), (448, 448)])
118109
def test_torch_clip_wrapper_vs_baseline_for_image_embeddings(
@@ -127,9 +118,6 @@ def test_torch_clip_wrapper_vs_baseline_for_image_embeddings(
127118
)
128119

129120

130-
@pytest.mark.skip(
131-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
132-
)
133121
@pytest.mark.onnx_extras
134122
@pytest.mark.e2e_model_inference
135123
@pytest.mark.parametrize("image_shape", [(224, 224), (320, 240), (448, 448)])
@@ -145,9 +133,6 @@ def test_onnx_clip_wrapper_vs_baseline_for_image_embeddings(
145133
)
146134

147135

148-
@pytest.mark.skip(
149-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
150-
)
151136
def _test_clip_wrapper_vs_baseline_for_text_embeddings(
152137
clip_wrapper,
153138
baseline_clip_model,
@@ -168,9 +153,6 @@ def _test_clip_wrapper_vs_baseline_for_text_embeddings(
168153
assert similarity.item() > 0.999
169154

170155

171-
@pytest.mark.skip(
172-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
173-
)
174156
@pytest.mark.e2e_model_inference
175157
def test_torch_clip_wrapper_vs_baseline_for_text_embeddings(
176158
clip_torch_wrapper: AutoModel,
@@ -181,9 +163,6 @@ def test_torch_clip_wrapper_vs_baseline_for_text_embeddings(
181163
)
182164

183165

184-
@pytest.mark.skip(
185-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
186-
)
187166
@pytest.mark.onnx_extras
188167
@pytest.mark.e2e_model_inference
189168
def test_onnx_clip_wrapper_vs_baseline_for_text_embeddings(

inference_experimental/tests/integration_tests/models/test_clip_predictions.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,9 +1058,6 @@ def reference_clip_model(
10581058
yield original_model, preprocess
10591059

10601060

1061-
@pytest.mark.skip(
1062-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
1063-
)
10641061
@pytest.mark.slow
10651062
@pytest.mark.torch_models
10661063
def test_clip_torch_image_prediction_for_numpy(
@@ -1103,9 +1100,6 @@ def test_clip_torch_image_prediction_for_torch_tensor(
11031100
)
11041101

11051102

1106-
@pytest.mark.skip(
1107-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
1108-
)
11091103
@pytest.mark.slow
11101104
@pytest.mark.torch_models
11111105
def test_clip_predictions_for_image_are_comparable_with_reference_implementation(
@@ -1157,9 +1151,6 @@ def test_clip_torch_image_text_embeddings(
11571151
assert tuple(embeddings.shape) == (4, 1024)
11581152

11591153

1160-
@pytest.mark.skip(
1161-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
1162-
)
11631154
@pytest.mark.slow
11641155
@pytest.mark.torch_models
11651156
def test_clip_torch_image_text_embeddings_on_pair_with_reference_implementation(
@@ -1226,9 +1217,6 @@ def test_clip_onnx_image_prediction_for_torch_tensor(
12261217
assert torch.allclose(embeddings, EXPECTED_DOG_IMAGE_EMBEDDING, atol=1e-3)
12271218

12281219

1229-
@pytest.mark.skip(
1230-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
1231-
)
12321220
@pytest.mark.slow
12331221
@pytest.mark.onnx_extras
12341222
@pytest.mark.cpu_only
@@ -1287,9 +1275,6 @@ def test_clip_onnx_image_prediction_for_text(
12871275
assert tuple(embeddings.shape) == (1, 1024)
12881276

12891277

1290-
@pytest.mark.skip(
1291-
reason="Skipping clip reference model test because openai weights hosted on azure are not available"
1292-
)
12931278
@pytest.mark.slow
12941279
@pytest.mark.onnx_extras
12951280
@pytest.mark.cpu_only

0 commit comments

Comments
 (0)