OpenGL.error.GLError: GLError
When I run python -m scripts.data_processors.smpl.generate_smpls --reference_imgs_folder reference_imgs --driving_video_path driving_videos/your_video_1 --device YOUR_GPU_ID,it reports an error:OpenGL.error.GLError: GLError( err = 12296,..... How to solve this problem?
The error OpenGL.error.GLError: GLError( err = 12296) that you encountered while running the command typically relates to issues with OpenGL context initialization or EGL settings.
Ensure that the PYOPENGL_PLATFORM environment variable is set correctly.
if "PYOPENGL_PLATFORM" not in os.environ: os.environ["PYOPENGL_PLATFORM"] = "egl" If you are on Windows, you might want to change egl to wgl. For Linux, ensure you have the necessary EGL library support.
Alternatively, you can follow this tutorial to set up the environment: https://github.com/fudan-generative-vision/champ/blob/master/docs/data_process.md. This should be helpful.
I encountered the same problem, and os. environmental ["PYOPENGL-PLATFORM"]="egl" did not help. My environment is a remote Linux server, but I am a non root user. May I ask if there are any other solutions available.