tranluan / Nonlinear_Face_3DMM

Source code for "Nonlinear 3D Face Morphable Model"
http://cvlab.cse.msu.edu/project-nonlinear-3dmm.html
Apache License 2.0
676 stars 124 forks source link

TensorFlow 2.0 #40

Closed Adriana618-Love closed 4 years ago

Adriana618-Love commented 4 years ago

Excuse me, first of all congratulate him on his work which is really interesting. The problem I have is because I want to run the code but when analyzing the ".sh" that you provide, you used TF 1.8. Is there a way to compile it with TF 2.0 ?, some modification or maybe do the compilation "manually"

huyanfei-cqupt commented 4 years ago

Excuse me, first of all congratulate him on his work which is really interesting. The problem I have is because I want to run the code but when analyzing the ".sh" that you provide, you used TF 1.8. Is there a way to compile it with TF 2.0 ?, some modification or maybe do the compilation "manually"

hi,what's mean this below functions? thanks ` def m2full(self, m): return m * self.std_m_tf + self.mean_m_tf

def shape2full(self, shape):
    return shape * self.std_shape_tf + self.mean_shape_tf`
tranluan commented 4 years ago

Please see this link https://www.tensorflow.org/guide/create_op