You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to reproduce and find out where the bug was appearing.
Basically, the the image was loaded properly at line 305 of utils/mjcf.py, but somehow the image_array became an empty array at line 307. This is the reason why you having that value error (numpy reduction functions cannot process empty array).
If you comment out line 307, you can load that mjcf model.
@bxtbold Thank you! It seems that the bug is caused by incorrect processing of the texrepeat attribute in MJCF. In the MJCF file there is <material texrepeat="0.5 0.5" texuniform="true" name="floor_backing_room_wall_mat" texture="floor_backing_room_wall" />. However, mjcf.py converts texrepeat to int which results in zero repeat.
Description
ValueError: zero-size array to reduction operation maximum which has no identity
when load the mjcf model attached.floor_backing_room.zip
Full output
To Reproduce
Expected behavior
Result from mujoco 3.2.5.
Environment:
The text was updated successfully, but these errors were encountered: