georgesung / ssd_tensorflow_traffic_sign_detection

Implementation of Single Shot MultiBox Detector in TensorFlow, to detect and classify traffic signs
MIT License
530 stars 222 forks source link

I am runing inference.py,but it have a problom input_files = glob.glob(input_dir + '/*.*'),unsupported operand type(s) for +: 'NoneType' and 'str' #17

Closed RoseLii closed 7 years ago

RoseLii commented 7 years ago

please help me

Traceback (most recent call last): File "D:/traffic_sign/ssd/ssd/inference.py", line 185, in input_files = glob.glob(input_dir + '/.') TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' I think the error that is input_dir,but parser = OptionParser() parser.add_option('-i', '--input_dir', dest='input_dir',type='string', help='Directory of input videos/images (ignored for "demo" mode). Will run inference on all videos/images in that dir') parser.add_option('-m', '--mode', dest='mode', default='image', help='Operating mode, could be "image", "video", or "demo"; "demo" mode displays annotated images from sample_images/')

Get and parse command line options

options, args = parser.parse_args(args)
    put_dir = options.input_dir

what are --input_dir input file?the help prompt should not be the path(image or video),but it's wrong for me to enter the path of sample_images. Please help me if I am wrong.

georgesung commented 7 years ago

What are the arguments you passed to inference.py? Can you share the complete command you used to run inference.py?