question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TFJS-converter | Cannot convert saved_model to tfjs_graph_model

See original GitHub issue

Environment

Python version

3.6

tensorflowjs version

1.0.1

OS version

MacOS Mojave 10.4.3

Error

While I am trying to convert faster_rcnn_inception_v2_coco saved model to Javascript format, I received an issue:

KeyError: <tf.Tensor 'SecondStagePostprocessor/BatchMultiClassNonMaxSuppresion/map/while/Switch_1:0' shape=<unkknown> dtype=float32>

Code to reproduce the bug / link to feature request

  1. Download faster_rcnn_inception_v2_coco tar and extract it
  2. Try to convert with tensorflowjs_converter --input_format=tf_saved_model --output_format=tfjs_graph_model <pathToExtractedTar>/saved_model ./output_folder

Would you be so kind to provide some help according this issue? Thank you!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
vpanichkincommented, Mar 29, 2019

Hi, Google Team!

Thank you for such a quick response. Today I succeed in converting this model by using 0.8.x version and passing a frozen model with

output_node_names=detection_boxes,detection_scores,detection_classes,num_detections

I suppose, that, while I am providing output_node_names, I stay focused on a particular part of the graph and this part converts without any issue.

Is it possible to add output_node_names parameter to future releases?

0reactions
vpanichkincommented, May 6, 2019

Hi, @pyu10055!

Solved an issue with older converter. Thanks for cooperating!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing a TensorFlow GraphDef based Models into ...
Convert an existing TensorFlow model to the TensorFlow.js web format. Run the converter script provided by the pip package: Usage: SavedModel ...
Read more >
TensorflowJS: It is possible to convert a graph model to a ...
The layers model format supports fewer features than the SavedModel and graph model formats, so you cannot convert layers to graph.
Read more >
How to get desired output after converting a SavedModel by ...
Hi, I have a problem after I converting a SavedModel by the TensorFlow.js converter. Before converting, let me show my model first:.
Read more >
tfjs-converter - GitHub Pages
A python pip package to convert a TensorFlow SavedModel/Frozen Model/Session Bundle to a web friendly format. If you already have a converted model,...
Read more >
@tensorflow/tfjs-converter - npm
tf_hub, tfjs_graph_model, Convert a TF-Hub model file to TensorFlow.js graph model format. Use tf.loadGraphModel() to load the converted model ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found