Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

main

roryclear464df4c5f536
diff --git a/test/test_clip.py b/test/test_clip.py
index 6618f99..c38f5e5 100644
--- a/test/test_clip.py
+++ b/test/test_clip.py
@@ -22,8 +22,9 @@ def test_clip_outputs():
sim = (emb1_text @ emb1.T).numpy()[0]
np.testing.assert_allclose(0.330654, sim, rtol=1e-6, atol=1e-6)
-test_clip_outputs()
-teset_clip_jit()
-teset_clip_jit(bs=16)
+if __name__ == "__main__":
+ test_clip_outputs()
+ teset_clip_jit()
+ teset_clip_jit(bs=16)