alina1021 / facial_expression_transfer Goto Github PK
View Code? Open in Web Editor NEWReal-time Facial Expression Transfer --> facial expression capture and reenactment via webcam
License: MIT License
Real-time Facial Expression Transfer --> facial expression capture and reenactment via webcam
License: MIT License
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.
I seem to be getting errors on build:
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Which version of python should I be running (currently on 3.7 via conda)
Dear Alina,
Could u upload and share that test video again on the Google cloud?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.