Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when run #38

Open
AshleyRoth opened this issue May 18, 2018 · 0 comments
Open

error when run #38

AshleyRoth opened this issue May 18, 2018 · 0 comments

Comments

@AshleyRoth
Copy link

AshleyRoth commented May 18, 2018

Hello! when i run python inference.py -m demo i see error

WARNING:tensorflow:From /home/user/ssd_tensorflow_traffic_sign_detection-master/model.py:79: get_regularization_losses (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_regularization_losses instead.
Restoring previously trained model at ./model.ckpt
Demo mode: Running inference on images in sample_images/
Running inference on sample_images/stop_1323896809.avi_image12.png
Inference took 38399.9 ms (0.03 fps)
Traceback (most recent call last):
  File "inference.py", line 189, in <module>
    generate_output(input_files, mode)
  File "inference.py", line 159, in generate_output
    image = run_inference(image_orig, model, sess, mode, sign_map)
  File "inference.py", line 74, in run_inference
    boxes = nms(y_pred_conf, y_pred_loc, prob)
  File "/home/user/ssd_tensorflow_traffic_sign_detection-master/model.py", line 248, in nms
    iou = calc_iou(box[:4], other_box[:4])
  File "/home/user/ssd_tensorflow_traffic_sign_detection-master/data_prep.py", line 29, in calc_iou
    iou = intersection / union
ZeroDivisionError: division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant