You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: