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

IndexError: too many indices for array #35

Open
l2yDec opened this issue Oct 30, 2022 · 1 comment
Open

IndexError: too many indices for array #35

l2yDec opened this issue Oct 30, 2022 · 1 comment

Comments

@l2yDec
Copy link

l2yDec commented Oct 30, 2022

$ python ycb_renderer.py
libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
Unable to initialize EGL
Command '['/home/rakuli/3dTracking/PoseCNN-PyTorch/ycb_render/build/test_device', '1']' returned non-zero exit status 1
number of devices found 3
Loaded EGL 1.5 after reload.
['../data/models/003_cracker_box/textured_simple.obj', '../data/models/002_master_chef_can/textured_simple.obj', '../data/models/011_banana/textured_simple.obj']
Traceback (most recent call last):
File "ycb_renderer.py", line 870, in
renderer.load_objects(obj_paths, texture_paths, colors)
File "ycb_renderer.py", line 396, in load_objects
self.load_object(obj_paths[i], texture_paths[i], scale[i])
File "ycb_renderer.py", line 237, in load_object
vertices, faces, materials, texture_paths = self.load_mesh(obj_path, scale)
File "ycb_renderer.py", line 345, in load_mesh
return self.recursive_load(scene.rootnode, [], [], [], [], offset, scale, [[], [], []])
File "ycb_renderer.py", line 387, in recursive_load
self.recursive_load(child, vertices, faces, materials, texture_paths, offset, scale, repeated)
File "ycb_renderer.py", line 364, in recursive_load
mat_diffuse = np.array(mat.properties['diffuse'])[:3]
IndexError: too many indices for array

@l2yDec l2yDec changed the title Unable to initialize EGL IndexError: too many indices for array Oct 30, 2022
@valentinhendrik
Copy link

valentinhendrik commented May 4, 2023

I am running in the same problem, did you manage to fix it?

edit: Okay we should have looked here I guess: #4

This worked for me. Downgrade pyassimp

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