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

I get ValueError when trying to run the script #147

Open
najm07 opened this issue Aug 28, 2022 · 0 comments
Open

I get ValueError when trying to run the script #147

najm07 opened this issue Aug 28, 2022 · 0 comments

Comments

@najm07
Copy link

najm07 commented Aug 28, 2022

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "object_tracker.py", line 238, in
app.run(main)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
File "object_tracker.py", line 73, in main
saved_model_loaded = tf.saved_model.load(FLAGS.weights, tags=[tag_constants.SERVING])
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\load.py", line 603, in load
return load_internal(export_dir, tags, options)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\load.py", line 633, in load_internal
ckpt_options)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\load.py", line 122, in init
meta_graph.graph_def.library))
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\function_deserialization.py", line 324, in load_function_def_library
func_graph = function_def_lib.function_def_to_graph(copy)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\function_def_to_graph.py", line 63, in function_def_to_graph
importer.import_graph_def_for_function(graph_def, name="")
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\importer.py", line 412, in import_graph_def_for_function
graph_def, validate_colocation_constraints=False, name=name)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\importer.py", line 501, in _import_graph_def_internal
raise ValueError(str(e))
ValueError: NodeDef mentions attr 'validate_shape' not in Op<name=AssignVariableOp; signature=resource:resource, value:dtype -> ; attr=dtype:type; is_stateful=true>; NodeDef: {{node AssignNewValue}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).

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