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

THuman2.0 have not face texture #249

Open
lsi1 opened this issue Mar 13, 2024 · 0 comments
Open

THuman2.0 have not face texture #249

lsi1 opened this issue Mar 13, 2024 · 0 comments

Comments

@lsi1
Copy link

lsi1 commented Mar 13, 2024

I downloaded THuman2.0 from git and try run THuman2.0 with data from mesh_smplx.obj from mesh/0127
I cannot run scripts/render_batch.py because in line vertices, faces, normals, faces_normals, textures, face_textures = load_scan variable face_textures is empty. Where to get a file with a texture for a sample script?
How to run the script correctly?

$ python scripts/render_batch.py --debug --headless
OMP: Info #273: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Start Rendering thuman2 with 36 views, 512x512 size.
Output dir: /THuman2/debug/thuman2_36views
Rendering types: ['light', 'normal', 'depth']
finally
Traceback (most recent call last):
  File "scripts/render_batch.py", line 284, in <module>
    render_subject(
  File "scripts/render_batch.py", line 115, in render_subject
    rndr.set_mesh(
  File "/icon/lib/renderer/gl/prt_render.py", line 158, in set_mesh
    self.uv_data[mat_name] = uvs[faces_uvs.reshape([-1])]
IndexError: arrays used as indices must be of integer (or boolean) type
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

1 participant