Add object detection, tracking, mobile notifications, and search to any security camera.
clip jit test file
roryclearbd803bb68b95
diff --git a/test/test_clip.py b/test/test_clip.pyindex b1feda2..dd5a9e2 100644--- a/test/test_clip.py+++ b/test/test_clip.py@@ -1,10 +1,7 @@from objects import ObjectFinder, precompute_embeddings_jit, precompute_embedding_jit_bs1import numpy as npfrom tinygrad import Tensor-import timeimport cv2-import subprocess-import sysdef test_clip_outputs():img1 = cv2.imread("test/clip_images/f40.jpg")@@ -15,9 +12,7 @@ def test_clip_outputs():np.testing.assert_allclose(0.330654, sim, rtol=1e-6, atol=1e-6)if __name__ == "__main__":- # todo sepatate test for egpu?- #clip = ObjectFinder(clip=True)- #test_clip_outputs()- for i in range(8): subprocess.run([sys.executable, "test/run_clip.py", str(2**i)], check=True)+ clip = ObjectFinder(clip=True)+ test_clip_outputs()diff --git a/test/test_clip_jit.py b/test/test_clip_jit.pynew file mode 100644index 0000000..e8b2220--- /dev/null+++ b/test/test_clip_jit.py@@ -0,0 +1,3 @@+import subprocess+import sys+for i in range(8): subprocess.run([sys.executable, "test/run_clip.py", str(2**i)], check=True)\ No newline at end of file