Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserWarning: Faces have invalid indices #15

Open
Laborant opened this issue Mar 11, 2021 · 2 comments
Open

UserWarning: Faces have invalid indices #15

Laborant opened this issue Mar 11, 2021 · 2 comments

Comments

@Laborant
Copy link

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 = BFM_model('.', '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
Copy link
Author

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
Copy link

hevinyu commented Mar 16, 2021

I had the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants