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

Getting Error while converting the frozen model to web version..... #15

Open
sandhyacs opened this issue May 8, 2019 · 0 comments
Open

Comments

@sandhyacs
Copy link

input node: Const
ouput node: num_detections

[<tf.Tensor 'prefix/Const:0' shape=(2,) dtype=float32>, <tf.Tensor 'prefix/image_tensor:0' shape=(?, ?, ?, 3) dtype=uint8>,.................................................................................................................................................................................................................
<tf.Operation 'prefix/detection_classes' type=Identity>, <tf.Operation 'prefix/num_detections' type=Identity>]

Command:
python -m quantize_graph --input=./exportedModel/optimized_graph.pb --outpu
t=rounded_graph.pb --output_node_names='num_detections' --mode=weights_rounded

Error::::

Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\framework\importer.py", line 4
18, in import_graph_def
graph._c_graph, serialized, options) # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef expected inputs '' do not match 1 inputs specified; O
p<name=Const; signature= -> output:dtype; attr=value:tensor; attr=dtype:type>; NodeDef: {{node Preprocessor/map/while/add/y
}} = Constdtype=DT_INT32, value=Tensor<type: int32 shape: [] values: 1>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Admin\pocketbotanist-master\python\quantize_graph.py", line 1302, in
app.run()
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\platform\app.py", line 125, in
run
_sys.exit(main(argv))
File "C:\Users\Admin\pocketbotanist-master\python\quantize_graph.py", line 1273, in main
importer.import_graph_def(tf_graph, input_map={}, name="")
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\util\deprecation.py", line 488
, in new_func
return func(*args, **kwargs)
File "C:\Users\Admin\AppData\Local\conda\conda\envs\tf\lib\site-packages\tensorflow\python\framework\importer.py", line 4
22, in import_graph_def
raise ValueError(str(e))
ValueError: NodeDef expected inputs '' do not match 1 inputs specified; Op<name=Const; signature= -> output:dtype; attr=val
ue:tensor; attr=dtype:type>; NodeDef: {{node Preprocessor/map/while/add/y}} = Constdtype=DT_INT32, value=Tensor<type: int3
2 shape: [] values: 1>

I am getting above error please tell me the solution if possible........

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