Categories
Misc

I got this error while trying to run the webcam_demo.py example in Posenet library from tensorflow. how to resolve this? #46575

I got this error/warning while trying to run the webcam_demo.py
example in Posenet library from Tensorflow. how to resolve
this?

This is the Git Repo from where I forked this
code : posenet-python

and This is my Output Screen :

>>>

RESTART: A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py

Cannot find model file ./_modelsmodel-mobilenet_v1_101.pb,
converting from tfjs…

WARNING:tensorflow:From
A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py:127:
checkpoint_exists (from
tensorflow.python.training.checkpoint_management) is deprecated and
will be removed in a future version.

Instructions for updating:

Use standard file APIs to check for files with this prefix.

Traceback (most recent call last):

File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py”, line 66, in
<module>

main()

File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterwebcam_demo.py”, line 20, in main

model_cfg, model_outputs = posenet.load_model(args.model,
sess)

File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterposenetmodel.py“, line 42, in load_model

convert(model_ord, model_dir, check=False)

File “A:PythonScriptsPosenet-Forked —
OGCodeposenet-python-masterposenetconvertertfjs2python.py“, line 198, in
convert

initializer_nodes=””)

File
“A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py”,
line 361, in freeze_graph

checkpoint_version=checkpoint_version)

File
“A:Pythonlibsite-packagestensorflowpythontoolsfreeze_graph.py”,
line 190, in freeze_graph_with_def_protos

var_list=var_list, write_version=checkpoint_version)

File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 835, in __init__

self.build()

File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 847, in build

self._build(self._filename, build_save=True,
build_restore=True)

File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 885, in _build

build_restore=build_restore)

File
“A:Pythonlibsite-packagestensorflowpythontrainingsaver.py“, line 489, in _build_internal

names_to_saveables)

File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 362, in validate_and_slice_inputs

for converted_saveable_object in saveable_objects_for_op(op,
name):

File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 223, in saveable_objects_for_op

yield ResourceVariableSaveable(variable, “”, name)

File
“A:Pythonlibsite-packagestensorflowpythontrainingsavingsaveable_object_util.py”,
line 95, in __init__

self.handle_op = var.op.inputs[0]

IndexError: tuple index out of range

>>>

My Git
Issue Link

submitted by /u/Section_Disastrous

[visit reddit]

[comments]

Leave a Reply

Your email address will not be published.