-
Notifications
You must be signed in to change notification settings - Fork 22
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
Loading OBJ file from ShapeNet fails #13
Comments
Dear simple-3dviz Team, i think the obj from ShapeNet.v2 consists of multiple models, which cannot be loaded by Mesh.from_file(). A possible workaround could be using the trimesh.load(file, force='mesh'). Regards, |
Hi @HanG-94, Thanks a lot for using our library. Do you mind sharing the obj file you that causes the ValueError? Best, |
Go to the lib file: simple_3dviz/io/mesh.py and modify those methods of class ObjMeshReader(MeshReader):
in ** ** the new parts. |
Hi simple-3dviz Team,
when i try to load .obj file from ShapeNet using Mesh.from_file("model_normalized.obj") then gives following error:
File ~/miniconda3/lib/python3.10/site-packages/simple_3dviz/io/mesh.py:147, in ObjMeshReader.read..extract_uv(face)
146 def extract_uv(face):
--> 147 return int(face.split("/")[1])-1
ValueError: invalid literal for int() with base 10: ''
The version of simple-3dviz is 0.7.0. The .obj file i list here:
model_normalized.zip
could you please help me out?
Regards,
Han Gao
The text was updated successfully, but these errors were encountered: