j96w / MimicPlay

"MimicPlay: Long-Horizon Imitation Learning by Watching Human Play" code repository
MIT License
214 stars 23 forks source link

About OpenGL render error when processing the hdf5 dataset #3

Open weixiang-smart opened 7 months ago

weixiang-smart commented 7 months ago

Hello! @j96w It's an excellent work of robot learning. When I tried to process the data downloaded from the google drive using python scripts/dataset_states_to_obs.py --dataset 'datasets/playdata/demo_modified.hdf5' --done_mode 0 --camera_names agentview robot0_eye_in_hand --camera_height 84 --camera_width 84 --output_name image_demo_local.hdf5 --exclude-next-obs, I got the render error about OpenGL OpenGL.raw.EGL._errors.EGLError: EGLError( err = EGL_NOT_INITIALIZED, baseOperation = eglMakeCurrent, cArguments = ( <OpenGL._opaque.EGLDisplay_pointer object at 0x7fe287ca7dc0>, <OpenGL._opaque.EGLSurface_pointer object at 0x7fe2921ab840>, <OpenGL._opaque.EGLSurface_pointer object at 0x7fe2921ab840>, <OpenGL._opaque.EGLContext_pointer object at 0x7fe2921ab7c0>, ), result = 0 ). Have you ever met this problem? Or I would like to know if the version of the mujoco causes this matter. My mujoco version is 3.1.1.

varunagrawal commented 6 months ago

This is an issue from robosuite. I am not sure how to fix it myself. :(

CAN-Lee commented 5 months ago

@weixiang-smart Hi, I also encountered the same problem. Have you solved it? Thanks.

j96w commented 5 months ago

Hi @weixiang-smart @CAN-Lee , I'm still looking into this issue related to robosuite. In the meantime, feel free to download the processed dataset (image_demo.hdf5) from each dataset folder.

RP-Wine commented 4 months ago

Same problem, solved after i switched my GPU to nvidia GPU only (because i'm using a laptop that has an intel GPU and nvidia GPU). Don't know if this works in your cases

yubinwang11 commented 3 months ago

Same error. I am actively looking for any solution.

welen-zhou commented 1 month ago

export MUJOCO_GL=glx ,it works for me.