Deep3DFaceReconstruction
Deep3DFaceReconstruction copied to clipboard
About Tensorflow Version
If we use Tensorflow version 2.x, it may report that "placeholder" is missed. And using Tensorflow version 1.x could solve this problem.
https://stackoverflow.com/questions/37383812/tensorflow-module-object-has-no-attribute-placeholder
If we use Tensorflow version 2.x, it may report that "placeholder" is missed. And using Tensorflow version 1.x could solve this problem.
Hi, did you run the demo.py successfully using Tensorflow version 2.x?
The placeholder error can be solved by replacing import tensorflow as tf with import tensorflow.compat.v1 as tf tf.disable_v2_behavior() in all files.
However, ./renderer/rasterize_triangles_kernel.so will still make a problem with newer versions of tensorflow. https://github.com/microsoft/Deep3DFaceReconstruction/issues/111 solved it for newer versions of TensorFlow.