Programminghut

Results 20 comments of Programminghut

I ran this on colab without any issues.

The solution i am going to share worked for me ### first, unistall tensorflow from environment `**pip uninistall tensorflow**` ### then, install tensorflow-gpu 1.14 `**pip install tensorflow-gpu==1.14**`

I would recommend try tracking your code line by line. Either debug or bunch of print statements. This way you'll be able to spot which line causing segment fault.

in mine code its working fine are you normalizing the image ?

after further tracking the code, found that the fault is due to this line `self.set_window_size(window_width, window_height)` from `gui_utils/glfw_window.py` in the __init__() function.

okay resolved segmentation fault it was due to `self.monitor_height` and `self.monitor_width` variables in the same file `def set_window_size(self, width, height):` this function I removed them and hard coded 1920 and...

Getting this error ``` Traceback (most recent call last): File "/Users/pawandeepsingh/Documents/Development/official_draggan/DragGAN/visualizer_drag.py", line 404, in main() File "/Users/pawandeepsingh/miniforge3/lib/python3.9/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/Users/pawandeepsingh/miniforge3/lib/python3.9/site-packages/click/core.py", line 1055, in main...

I think it require cuda to run as I see in stylegan3 repo, and I am running Mac m1 maybe that is the issue. :(

I also had problem over there, didn't found any solution so I hard coded these values. :(

Add these lines of code before create window In gui_util>glfw_window.py>line 35 ``` glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3) glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3) glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE) glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE) ``` if that not work Try this https://github.com/NVlabs/stylegan3/issues/66#issuecomment-1006375618