Browse Source

update dockerignore and debug option

blakeblackshear 5 năm trước cách đây
mục cha
commit
806acaf445
2 tập tin đã thay đổi với 8 bổ sung1 xóa
  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.
             # Actual detection.
             objects = self.engine.DetectWithInputTensor(frame['frame'], threshold=frame['region_threshold'], top_k=3)
             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
             # parse and pass detected objects back to the camera
             parsed_objects = []
             parsed_objects = []
             for obj in objects:
             for obj in objects: