Git Product home page Git Product logo

Comments (6)

RichardMrLu avatar RichardMrLu commented on June 4, 2024 3

You should change your tensorflow version to 0.12.1:
pip uninstall tensorflow
pip install tensorflow==0.12.1

from ssd_tensorflow_traffic_sign_detection.

mangalbhaskar avatar mangalbhaskar commented on June 4, 2024 3

I too faced the same issue. I was running TF 1.9.0, Py 3.6 on Ubuntu 18.04 LTS. Following changes fixed it and was able to run the pre-trained model without any errors. Here's the git diff on model.py

@@ def ModelHelper(y_pred_conf, y_pred_loc):
        # Confidence loss
-       conf_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits, y_true_conf) **# Replace this line**
+       conf_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, labels=y_true_conf)
 
@@ def ModelHelper(y_pred_conf, y_pred_loc):
-       loc_loss = tf.select(smooth_l1_condition, loc_loss_l2, loc_loss_l1)  **# Replace this line**
+       loc_loss = tf.where(smooth_l1_condition, loc_loss_l2, loc_loss_l1)
 @@ def AlexNet():
        # Concatenate all preds together into 1 vector, for both classification and localization predictions
-       final_pred_conf = tf.concat(1, preds_conf) **# Replace this line**
-       final_pred_loc = tf.concat(1, preds_loc) **# Replace this line**
+       final_pred_conf = tf.concat(preds_conf,1)
+       final_pred_loc = tf.concat(preds_loc,1)

from ssd_tensorflow_traffic_sign_detection.

amirhosseinfa avatar amirhosseinfa commented on June 4, 2024

i cant find this version of tensorflow!!!

from ssd_tensorflow_traffic_sign_detection.

Caiyujie007 avatar Caiyujie007 commented on June 4, 2024

I used python3.5 and pip3 to install, it works.

from ssd_tensorflow_traffic_sign_detection.

fried-muscle avatar fried-muscle commented on June 4, 2024

i have a similar problem in my computer, I use python 3.6 and TensorFlow 1.8.0, if it means i can only use version 0.12.1 to finish it?

from ssd_tensorflow_traffic_sign_detection.

lyycfairy avatar lyycfairy commented on June 4, 2024

thinks @mangalbhaskar
it works

from ssd_tensorflow_traffic_sign_detection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.