lsfm icon indicating copy to clipboard operation
lsfm copied to clipboard

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

Open channingxiao opened this issue 7 years ago • 1 comments

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".

channingxiao avatar May 17 '18 07:05 channingxiao

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

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

btp10 avatar Mar 21 '19 09:03 btp10