Skip to content

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

Ampc (#169)

Rory Clear6069ed2c1002
diff --git a/clearcam.py b/clearcam.py
index a1d173c..3d348e9 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -1398,6 +1398,11 @@ if __name__ == "__main__":
model = YOLOv9(models[int(model_variant)], res=int(yolo_res)) if int(model_variant) < 6 else RFDETR(models[int(model_variant)])
object_finder = ObjectFinder(clip=use_clip, face=use_face) if (use_clip or use_face) else None
+ if use_clip:
+ print("prewarming CLIP....")
+ for _ in range(2): _ = object_finder.model._encode_text("text here", realize=True)
+ for _ in range(2): _ = jit_infer(object_finder.model.precompute_embedding, Tensor.rand(1, 3, 224, 224), jit_cache=jit_cache).numpy()
+ print("DONE")
#model = RFDETR("small")
cam = VideoCapture()
diff --git a/requirements.txt b/requirements.txt
index ddb110f..377c522 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-git+https://github.com/tinygrad/tinygrad.git@2d48fe8b7bd9acfa00e91a7f89b28b3ded370c27
+git+https://github.com/tinygrad/tinygrad.git@59de2fa3d38b2fc45bcc45935754bf69923d81ec
numpy==2.0.0
opencv-python-headless==4.10.0.84
\ No newline at end of file