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

Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary. #1

Open
ghost opened this issue Jun 5, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2019

I have setup this project to test on my own custom msi board desktop with GTX 1070 6g GPU and core i7 processor CPU. After i testing on the CPU mode the project running fine but my cpu is up to 100% and get low FPS on webcam demo, so i start to make another project with tensorflow-gpu. After installed all the requirement component, i start to run the script "python scripts/run_webcam.py --source 0 --show 1 --landmark-model shape_predictor_68_face_landmarks.dat --tf-model frozen.pd" and i got this error.

(tf-gpu) PS>python scripts/run_webcam.py --source 0 --show 1 --landmark-model shape_predictor_68_face_landmarks.dat --tf-model .\frozen_model_iohannis.pb
Traceback (most recent call last):
  File "C:\Users\Hanuman\Anaconda3\envs\tf-gpu\lib\site-packages\tensorflow\python\framework\importer.py", line 418, in import_graph_def
    graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef mentions attr 'Truncate' not in Op<name=Cast; signature=x:SrcT -> y:DstT; attr=SrcT:type; attr=DstT:type>; NodeDef: generate_output/load_images/convert_image/Cast = Cast[DstT=DT_FLOAT, SrcT=DT_UINT8, Truncate=false](image_tensor). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "scripts/run_webcam.py", line 131, in <module>
    main()
  File "scripts/run_webcam.py", line 44, in main
    graph = load_graph(args.frozen_model_file)
  File "scripts/run_webcam.py", line 38, in load_graph
    tf.import_graph_def(od_graph_def, name='')
  File "C:\Users\Hanuman\Anaconda3\envs\tf-gpu\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
    return func(*args, **kwargs)
  File "C:\Users\Hanuman\Anaconda3\envs\tf-gpu\lib\site-packages\tensorflow\python\framework\importer.py", line 422, in import_graph_def
    raise ValueError(str(e))
ValueError: NodeDef mentions attr 'Truncate' not in Op<name=Cast; signature=x:SrcT -> y:DstT; attr=SrcT:type; attr=DstT:type>; NodeDef: generate_output/load_images/convert_image/Cast = Cast[DstT=DT_FLOAT, SrcT=DT_UINT8, Truncate=false](image_tensor). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).

I have search on the internet, it tell that the problem is with the version of the tensorflow. but i already install version 1.12.0 and the newest one, but still get this error.

Sorry for my english by the way i really need someone to help this problem.

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

0 participants