Update benchmark.py

This commit is contained in:
SaiKrishna99-creator 2025-08-20 20:28:15 -04:00 committed by GitHub
parent 6154e15596
commit d3dde23d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
#Importing the required libraries
#Importing necessary libraries
import datetime
import multiprocessing as mp
from statistics import mean
@ -16,9 +16,8 @@ from frigate.util.process import FrigateProcess
my_frame = np.expand_dims(np.full((300, 300, 3), 1, np.uint8), axis=0)
labels = load_labels("/labelmap.txt")
######
# Minimal same process runner
######
# object_detector = LocalObjectDetector()
# tensor_input = np.expand_dims(np.full((300,300,3), 0, np.uint8), axis=0)
@ -65,9 +64,9 @@ def start(id, num_detections, detection_queue, event):
print(f"{id} - Average frame processing time: {mean(frame_times) * 1000:.2f}ms")
######
# Separate process runner
######
# event = mp.Event()
# detection_queue = mp.Queue()
# edgetpu_process = EdgeTPUProcess(detection_queue, {'1': event}, 'usb:0')