From b6be9529469cde645e7b91e29f088859fdedd3ef Mon Sep 17 00:00:00 2001 From: hcv1027 Date: Mon, 6 Jan 2020 18:13:22 +0800 Subject: [PATCH] Fix crash issue when using webcam, and there is no pedestrian been detected as beginning. (#17) --- monoloco/visuals/webcam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monoloco/visuals/webcam.py b/monoloco/visuals/webcam.py index 2a6047b..bf3dae8 100644 --- a/monoloco/visuals/webcam.py +++ b/monoloco/visuals/webcam.py @@ -66,7 +66,7 @@ def webcam(args): outputs, varss = monoloco.forward(keypoints, kk) dic_out = monoloco.post_process(outputs, varss, boxes, keypoints, kk, dict_gt) visualizer_monoloco.send((pil_image, dic_out)) - end = time.time() + end = time.time() print("run-time: {:.2f} ms".format((end-start)*1000)) cam.release()