XingangPan / DragGAN

Official Code for DragGAN (SIGGRAPH 2023)

Home Page:https://vcai.mpi-inf.mpg.de/projects/DragGAN/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in "gui.sh" Script Execution on MacBook Pro M2 with macOS 14.2.1

Lav000 opened this issue · comments

There appears to be an error when running the "gui.sh" script with a specific argument on a MacBook Pro M2 with macOS 14.2.1 (23C71), leading to an issue in the execution of the "visualizer_drag.py" Python script.

The "gui.sh" script was executed :

sh scripts/gui.sh

The error occurred during the execution of the "visualizer_drag.py" :

File "/DragGAN/visualizer_drag.py", in <module>
    main()

The error is caused by a GLError exception, indicating an invalid operation in the OpenGL library:

OpenGL.error.GLError: GLError(
    err = 1282,
    description = b'invalid operation',
    baseOperation = glGetUniformLocation,
    cArguments = (1, b'Texture\x00'),
    result = -1
)
File "/miniforge3/lib/python3.10/site-packages/imgui/integrations/opengl.py", line 108, in _create_device_objects
    self._attrib_location_tex = gl.glGetUniformLocation(self._shader_handle, "Texture")

Hi @Lav000 Did you solve this issue? I had the same error when running on Ubuntu.

try running
visualizer_drag_gradio.py
instead of
visualizer_drag.py