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

Why is the number of model faces limited to 50,000? #106

Open
Reuben-Sun opened this issue Feb 20, 2025 · 1 comment
Open

Why is the number of model faces limited to 50,000? #106

Reuben-Sun opened this issue Feb 20, 2025 · 1 comment

Comments

@Reuben-Sun
Copy link

When I was using Hunyuan3DPaintPipeline to create textures for mesh, I found there are a hard code limited the number of mesh faces. Does 50,000 have any special meaning? Or can I remove this directly?

# Hunyuan3D-2/hy3dgen/texgen/utils/uv_warp_utils.py

def mesh_uv_wrap(mesh):
    if isinstance(mesh, trimesh.Scene):
        mesh = mesh.dump(concatenate=True)

    if len(mesh.faces) > 50000:
        raise ValueError("The mesh has more than 50,000 faces, which is not supported.")
@Zeqiang-Lai
Copy link
Collaborator

Feel free to remove it, but the more faces, the slower the running speed.

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