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

AttributeError: 'ColouredTriMesh' object has no attribute 'texture' #21

Open
channingxiao opened this issue May 17, 2018 · 1 comment
Open

Comments

@channingxiao
Copy link

I was using lsfm 1.0.0. I encountered "AttributeError: 'ColouredTriMesh' object has no attribute 'texture'" error. So I checked the code, it was in

def import_mesh(path):
if path.suffix == '.pkl' or path.suffix == '.gz':
mesh = import_pickle(path)
else:
mesh = m3io.import_mesh(path)
if mesh.texture.pixels.dtype != np.float64:
mesh.texture.pixels = normalize_pixels_range(mesh.texture.pixels)
return mesh

mesh = import_pickle(path) here I imported the template.pkl copied from "data".
I read the menpo "ColouredTriMesh" code, there is no attribute 'texture'" . ( version 0.7.7).

I am using ubuntu 14.04 with python 3.5. lsfm is 1.0.0, and it was installed with "conda install lsfm -c menpo".

@btp10
Copy link

btp10 commented Mar 21, 2019

TexturedTriMesh has attribute 'texture'. Try to input mesh data of the following format:

  • sample1.obj
  • sample1.jpg
  • ...
  • ...
  • sample_n.obj
  • sample_n.jpg

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