Skip to content

Error loading ShapeNet meshes with texture #4362

@janbechtold

Description

@janbechtold

Describe the bug
When loading specific ShapeNet meshes with Open3D > 0.11, the process ends after printing 'Not a JPEG file: starts with 0x89 0x50'.
In contrast, Open3D version 0.8.0 with python 3.7.9 returns a mesh.

To Reproduce
Steps to reproduce the behavior:
From within your ShapeNetCore.v2 directory...

  1. cd '02801938/d9f0f7cff584b60d826faebfb5cddf3c/models'
  2. source activate yourcondaenv
  3. python

import open3d as o3d
o3d.io.read_triangle_mesh('model_normalized.obj')

  1. See error: Not a JPEG file: starts with 0x89 0x50

(same for this model: 03467517/2cbc0faddf227502bbc745a3524d966b/models)

Expected behavior

  1. A mesh is returned automatically without texture, or
  2. An option to not load the texture, or
  3. A way to catch this in python

Environment (please complete the following information):

  • Operating system: RHEL8
  • Python version: 3.8
  • Open3D version: 0.13.0
  • Is this remote workstation?: yes
  • How did you install Open3D?: conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot a build issue, this is likely a bug.iomeshtexture

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions