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

Error when loading .glb files. #10

Open
Lucalme opened this issue Aug 20, 2024 · 3 comments
Open

Error when loading .glb files. #10

Lucalme opened this issue Aug 20, 2024 · 3 comments

Comments

@Lucalme
Copy link

Lucalme commented Aug 20, 2024

I've notived that when using the live demo on HF or even when running locally, the app crashes pretty fast when loading a .glb file.
This should not be so much of a issue, since converting .glb to .obj is relatively easy. but I thought it was worth noting.

@Lucalme
Copy link
Author

Lucalme commented Aug 20, 2024

File "E:\Softs\AI Stuff\MeshAnythingV2\mesh_to_pc.py", line 28, in export_to_watertight
scaled_vertices, to_orig_center, to_orig_scale = normalize_vertices(normalized_mesh.vertices)
AttributeError: 'Scene' object has no attribute 'vertices'

@Zeina-T
Copy link

Zeina-T commented Sep 5, 2024

Hi @Lucalme I also faced this issue and solved it by changing this line and adding force='mesh' to force extract the mesh from the scene.
So the line becomes: input_mesh = trimesh.load(input_3d, force="mesh")

Hope this helps!

@kexul
Copy link

kexul commented Dec 8, 2024

Hi @Lucalme I also faced this issue and solved it by changing this line and adding force='mesh' to force extract the mesh from the scene. So the line becomes: input_mesh = trimesh.load(input_3d, force="mesh")

Hope this helps!

Thanks, worked like a charm!

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

3 participants