From 121da9a6c0e12ac88da5b418d7b133cb798902ca Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 12 Sep 2019 12:52:59 +0200 Subject: [PATCH] updates --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index b112bba7..0cedbf11 100644 --- a/detect.py +++ b/detect.py @@ -10,7 +10,7 @@ def detect(save_txt=False, save_img=False, stream_img=False): img_size = (320, 192) if ONNX_EXPORT else opt.img_size # (320, 192) or (416, 256) or (608, 352) for (height, width) out, source, weights, half = opt.output, opt.source, opt.weights, opt.half webcam = source == '0' or source.startswith('rtsp') or source.startswith('http') - streams = source == 'streams.txt' + streams = source.endswith('streams.txt') # Initialize device = torch_utils.select_device(force_cpu=ONNX_EXPORT)