diff --git a/README.md b/README.md index 579c0e5..f006c76 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,14 @@ You can run DragGAN Gradio demo as well, this is universal for both windows and python visualizer_drag_gradio.py ``` +If you are running the project under WSL2, do the following: + +1. ```Install Conda ``` +2. PyOpenGL must be version 3.1.5 +3. ```conda install -c conda-forge libstdcxx-ng``` +4. gui_utils/glfw_window.py - replace the variables self.monitor_width & self.monitor_height in the set_window_size function with your own variables (for example 1920x1080). +5. ```python visualizer_drag.py``` + ## Acknowledgement This code is developed based on [StyleGAN3](https://github.com/NVlabs/stylegan3). Part of the code is borrowed from [StyleGAN-Human](https://github.com/stylegan-human/StyleGAN-Human). diff --git a/visualizer_drag_gradio.py b/visualizer_drag_gradio.py index ff9abe7..2c7341b 100644 --- a/visualizer_drag_gradio.py +++ b/visualizer_drag_gradio.py @@ -306,9 +306,7 @@ with gr.Blocks() as app: with gr.Column(scale=8): form_image = ImageMask( value=global_state.value['images']['image_show'], - brush_radius=20).style( - width=768, - height=768) # NOTE: hard image size code here. + brush_radius=20) gr.Markdown(""" ## Quick Start