Skip to content
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

WSL2 Support Instructions #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ You can run DragGAN Gradio demo as well:
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).
Expand Down
4 changes: 1 addition & 3 deletions visualizer_drag_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ def preprocess_mask_info(global_state, image):
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

Expand Down