TimoBolkart / TF_FLAME

Tensorflow framework for the FLAME 3D head model. The code demonstrates how to sample 3D heads from the model, fit the model to 2D or 3D keypoints, and how to generate textured head meshes from Images.
http://flame.is.tue.mpg.de/
436 stars 78 forks source link

ImportError: cannot import name 'plyutils' #57

Open cuixin1992 opened 2 years ago

cuixin1992 commented 2 years ago

Hi, thank you for your great work. But I got a problem when I run your code. Could you help me with it? Thank you very much.

I run the code using the following order. python sample_FLAME.py --option sample_FLAME --model_fname './models/generic_model.pkl' --num_samples 5 --out_path './FLAME_samples' --visualize False

I got the following error. 2022-01-06 21:05:24.843794: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_100.dll Traceback (most recent call last): File "sample_FLAME.py", line 114, in main(args) File "sample_FLAME.py", line 101, in main sample_FLAME(args.model_fname, int(args.num_samples), args.out_path, str2bool(args.visualize), sample_VOCA_template=False) File "sample_FLAME.py", line 92, in sample_FLAME sample_mesh.write_ply(out_fname) File "D:\CUIXIN\01_HumanModelTemplate\TF_FLAME-master\psbody\mesh\mesh.py", line 476, in write_ply serialization.write_ply(self, filename, flip_faces, ascii, little_endian, comments) File "D:\CUIXIN\01_HumanModelTemplate\TF_FLAME-master\psbody\mesh\serialization\serialization.py", line 214, in write_ply from psbody.mesh.serialization import plyutils ImportError: cannot import name 'plyutils'

pfeducode commented 2 years ago

do you solve this problem?

arintharoza commented 1 year ago

Same problem here. Any help please? It seems that there is no plyutils.py file in the serialization directory!