浏览代码

update dockerignore and debug option

blakeblackshear 5 年之前
父节点
当前提交
806acaf445
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 6 1
      .dockerignore
  2. 2 0
      frigate/object_detection.py

+ 6 - 1
.dockerignore

@@ -1 +1,6 @@
-README.md
+README.md
+diagram.png
+.gitignore
+debug
+config/
+*.pyc

+ 2 - 0
frigate/object_detection.py

@@ -39,6 +39,8 @@ class PreppedQueueProcessor(threading.Thread):
 
             # Actual detection.
             objects = self.engine.DetectWithInputTensor(frame['frame'], threshold=frame['region_threshold'], top_k=3)
+            # print(self.engine.get_inference_time())
+
             # parse and pass detected objects back to the camera
             parsed_objects = []
             for obj in objects: