Skip to content

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

update tinygrad

roryclear64e0f4f7bd56
diff --git a/clearcam.py b/clearcam.py
index b1d9795..1c901ff 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -1878,6 +1878,8 @@ if __name__ == "__main__":
if rtsp_url:
yolo_infer = YOLOv8(w=width, r=ratio, d=depth, num_classes=80)
state_dict = safe_load(get_weights_location(yolo_variant))
+ for k, _ in state_dict.items(): # todo hack because https://github.com/tinygrad/tinygrad/commit/565a7a6218e5ab920360c21d23af6bcae8df82b5
+ if k.endswith("num_batches_tracked"): state_dict[k] = Tensor.empty()
load_state_dict(yolo_infer, state_dict)
cam = VideoCapture(rtsp_url,cam_name=cam_name)
hls_streamer = HLSStreamer(cam,cam_name=cam_name)
diff --git a/requirements.txt b/requirements.txt
index b085ffb..8c37e79 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-git+https://github.com/roryclear/tinygrad.git@0c6868c104974afc325c369990f5f61c3ed696a0
+git+https://github.com/tinygrad/tinygrad.git@0874ba8cc89fb89a46217ff75e1ef2701b2b010a
numpy==2.0.0
opencv-python-headless==4.10.0.84
scipy==1.14.1
\ No newline at end of file