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

Support configuring gradio startup parameters #112

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

venshine
Copy link

Support configuring gradio startup parameters server_name and server_port:
If you want to run DragGAN Gradio demo with 0.0.0.0 as server name, allowing to respond to network requests:

python visualizer_drag_gradio.py --listen

If you want to run DragGAN Gradio demo with given server port, for example port 8888:

python visualizer_drag_gradio.py --port=8888

@cobanov
Copy link
Contributor

cobanov commented Jun 29, 2023

--listen flag is so crucial to open port from docker container to local in order to interact without ssh tunneling

Copy link
Collaborator

@LeoXing1996 LeoXing1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rajnish159
Copy link

pip install draggan
!pip3 install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu118/torch_nightly.html
pip install Pillow==9.5.0
After installing the above three software packages, you can run DragGAN normally.

this command :- !python /content/DragGAN/visualizer_drag_gradio.py

Copy link

@rajnish159 rajnish159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants