GithubHelp home page GithubHelp logo

alina1021 / facial_expression_transfer Goto Github PK

View Code? Open in Web Editor NEW
89.0 6.0 29.0 3.78 MB

Real-time Facial Expression Transfer --> facial expression capture and reenactment via webcam

License: MIT License

Python 100.00%
deep-learning gans face2face pix2pix-tensorflow tensorflow keras opencv python

facial_expression_transfer's Issues

Which Python Version

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)

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.