FuxiCV / MeInGame

MeInGame: Create a Game Character Face from a Single Portrait, AAAI 2021
MIT License
653 stars 119 forks source link

UserWarning: Faces have invalid indices #15

Open Laborant opened 3 years ago

Laborant commented 3 years ago

2021-03-11 14:36:42.069441: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): GeForce RTX 2080 Ti, Compute Capability 7.5 /home/b/anaconda3/envs/fit/lib/python3.7/site-packages/pytorch3d/io/obj_io.py:70: UserWarning: Faces have invalid indices warnings.warn("Faces have invalid indices") Traceback (most recent call last): File "main.py", line 180, in main() File "main.py", line 146, in main model = UVInpainting(config, device, sess, graph) File "/home/b/MeInGame/uv_inpainting.py", line 83, in init self.init_test() File "/home/b/MeInGame/uv_inpainting.py", line 268, in init_test self.reconstructor = Deep3DFace(self.sess, self.graph) File "/home/b/MeInGame/lib/deep3d.py", line 23, in init self.bfm = BFMmodel('.', 'data/models/bfm2009{}.mat'.format(bfm_version)) File "/home/b/MeInGame/lib/deep3d.py", line 121, in init self.load_BFM09() File "/home/b/MeInGame/lib/deep3d.py", line 130, in load_BFM09 self.shapeMU = model['meanshape'].astype(np.float32) # mean face shape KeyError: 'meanshape'

Help me please, how fix this problem?

Laborant commented 3 years ago

I fixed error message warnings.warn("Faces have invalid indices") via coment in string 69-70 in file obj_io.py

But remains one problem, how fix KeyError: 'meanshape'?

hevinyu commented 3 years ago

I had the same problem.