Skip to content

Commit df0d551

Browse files
committed
Updated main.py
Signed-off-by: Mpho Mphego <mpho112@gmail.com>
1 parent 8e4adf0 commit df0d551

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ def main(args):
141141
logger.info(f"Total time taken to load all the models: {model_load_time:.2f} secs.")
142142

143143
for frame in video_feed.next_frame():
144-
if args.debug:
145-
video_feed.show(video_feed.resize(frame))
146144

147145
predict_end_time, face_bboxes = face_detection.predict(frame, draw=True)
148146
text = f"Face Detection Inference time: {predict_end_time:.3f} s"
@@ -173,6 +171,11 @@ def main(args):
173171
text, frame, (15, video_feed.source_height - 60)
174172
)
175173

174+
175+
176+
if args.debug:
177+
video_feed.show(video_feed.resize(frame))
178+
176179
video_feed.close()
177180

178181

0 commit comments

Comments
 (0)