Deep3DFaceReconstruction icon indicating copy to clipboard operation
Deep3DFaceReconstruction copied to clipboard

About Tensorflow Version

Open SunXitong1997 opened this issue 5 years ago • 3 comments

If we use Tensorflow version 2.x, it may report that "placeholder" is missed. And using Tensorflow version 1.x could solve this problem.

SunXitong1997 avatar Nov 19 '19 07:11 SunXitong1997

https://stackoverflow.com/questions/37383812/tensorflow-module-object-has-no-attribute-placeholder

alicedingyueming avatar Mar 29 '20 06:03 alicedingyueming

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?

diggle1 avatar Aug 16 '20 07:08 diggle1

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.

fisakhan avatar Jun 16 '21 08:06 fisakhan