-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Trying to run on Mac m1 #32
Comments
after further tracking the code, found that the fault is due to this line
from |
okay resolved segmentation fault it was due to I removed them and hard coded 1920 and 1080 instead. |
Getting this error
any help would be appreciated :) |
@Pawandeep-prog I fixed the issue by following this suggestion. |
I think it require cuda to run as I see in stylegan3 repo, and I am running Mac m1 maybe that is the issue. :( |
MacOS
|
I can open the generated web address, and the interactive content is displayed correctly. However, once I click to manipulate the image, it shows an error: ”Expecting value: line 1 column 1 (char 0)“, MacOS M1 |
@albusdemens when you say fixed, do you mean the project was running? |
I track my issue, I found the problem is caused by : |
I also had problem over there, didn't found any solution so I hard coded these values. :( |
I try: glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3)
glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3)
glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, glfw.TRUE)
glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE) I want to set the openGL context to 3.3, while: With this change: But further exception was thrown: gui_utils/glfw_window.py", line 193, in begin_frame
|
I have spent a fair amount of time debugging this issue and concluded that the codebase cannot run on macOS without a significant refactoring of the OpenGL code. The OpenGL code in
See https://www.khronos.org/opengl/wiki/OpenGL_Context#OpenGL_3.2_and_Profiles The only path forward to make this work on macOS is to migrate code which uses the fixed function pipeline to use shader-based programming instead. |
My Mac configs:
os: Mac OS 13.4 (22F66)
cpu: Mac m1
ram: 8GB
after running through
sh scripts/gui.sh
I am getting segment fault:
scripts/gui.sh: line 2: 77912 Segmentation fault: 11 python visualizer_drag.py checkpoints/stylegan2_lions_512_pytorch.pkl
need any more information would be happy to share.
The text was updated successfully, but these errors were encountered: