YOLOv3_TensorFlow icon indicating copy to clipboard operation
YOLOv3_TensorFlow copied to clipboard

mode encoding error

Open h-ann opened this issue 6 years ago • 2 comments

The issue is in https://github.com/wizyoung/YOLOv3_TensorFlow/blob/d998369c8213ded2414f470b30000545b4c2f614/utils/data_utils.py#L171

mode parameter in get_batch_data() method is passed as bytes, not as str. So comparison if mode == 'train' always gives False.

Should be updated to if mode == b'train' of just added mode = mode.decode("utf-8")

I am running Python 3.6.7 on Linux OS

h-ann avatar May 23 '19 12:05 h-ann

That's weird because I'm also using Python 3.6.7 on Ubuntu.

wizyoung avatar Jun 24 '19 03:06 wizyoung

请问有从rtsp流每隔n帧跑yolov3检测实时人数的脚本吗?

bujianyiwang avatar Jan 16 '20 06:01 bujianyiwang