Skip to content

Errors loading inception v3 in iOS example #3480

@Piso

Description

@Piso

Environment info

Operating System: Mac OS X / iOS

If installed from source, provide

  1. The commit hash (git rev-parse HEAD) : fc91629
  2. The output of bazel version: Build label: 0.3.0-homebrew

Steps to reproduce

  1. Download the .pb file from https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip
  2. Insert the .pb file in the data folder of the camera iOS project
  3. Launch the project from Xcode, console outputs following errors:

Running model failed:Invalid argument: Session was not created with a graph before Run()!

Running model failed:Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]

What have you tried?

  1. ran the following script referenced in iOS example DecodeJpeg issue with Image Retraining model #2883:

bazel build tensorflow/python/tools:strip_unused && \ bazel-bin/tensorflow/python/tools/strip_unused \ --input_graph=your_retrained_graph.pb \ --output_graph=stripped_graph.pb \ --input_node_names=Mul \ --output_node_names=final_result \ --input_binary=true

However, I receive the following error:

/tensorflow/bazel-bin/tensorflow/python/tools/strip_unused.runfiles/org_tensorflow/tensorflow/python/framework/graph_util.py", line 156, in extract_sub_graph assert d in name_to_node_map, "%s is not in graph" % d AssertionError: final_result is not in graph

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions