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

Object Detection example, help #35

Open
ThomasLengeling opened this issue Dec 14, 2017 · 0 comments
Open

Object Detection example, help #35

ThomasLengeling opened this issue Dec 14, 2017 · 0 comments

Comments

@ThomasLengeling
Copy link

I am trying to use the image classifier class for object detection (https://github.com/tensorflow/models/tree/master/research/object_detection)

But I am having problems loading the model, I am not quite sure how to change the image classifier to be able to detect objects. I am using the pertained models from https://github.com/GoogleCloudPlatform/tensorflow-object-detection-example and modifying the code from the ImageClasigierr example.

I am trying to follow this code which computes a tensorflow object detection model.
tensorflow/models#1741

but I am getting an error when loading the model and this part of the code

if(!session->Run(inputs, { settings.output_layer_name }, {}, &output_tensors).ok()) {

[ error ] ofxMSATensorFlow: Error during running. Check console for details.
  settings.image_dims = {299, 299, 3};
  settings.itensor_dims = {1, 299, 299, 3};
  settings.model_path = "models/frozen_inference_graph.pb";
  settings.labels_path = "models/tensorflow_apple.txt";

  settings.input_layer_name = "image_tensor:0";
  settings.output_layer_name = {"detection_boxes:0", "detection_scores:0",
                                "detection_classes:0", "num_detections:0"};
  settings.dropout_layer_name = "";
  settings.varconst_layer_suffix = "";
  settings.norm_mean = 0.0f;
  settings.norm_stddev = 255.0f;

any suggestions?

I very much appreciate your time for this great addon.

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