theAIGuysCode/yolov4-deepsort

I get ValueError when trying to run the script

najm07 opened this issue · 0 comments

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.).