Skip to content

Commit

Permalink
Merge pull request XingangPan#52 from akashAD98/main
Browse files Browse the repository at this point in the history
added support for google collab
  • Loading branch information
XingangPan authored Jun 26, 2023
2 parents 383fc19 + ee253ba commit 9303563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<a href='https://vcai.mpi-inf.mpg.de/projects/DragGAN/'>
<img src='https://img.shields.io/badge/DragGAN-Page-orange?style=for-the-badge&logo=Google%20chrome&logoColor=white&labelColor=D35400' alt='Project Page'></a>
<a href="https://huggingface.co/spaces/radames/DragGan"><img alt="Huggingface" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-DragGAN-orange"></a>
<a href="https://colab.research.google.com/drive/1mey-IXPwQC_qSthI5hO-LTX7QL4ivtPh?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>
</p>
</p>

Expand Down
4 changes: 2 additions & 2 deletions visualizer_drag_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from viz.renderer import Renderer, add_watermark_np

parser = ArgumentParser()
parser.add_argument('--share', action='store_true')
parser.add_argument('--share', action='store_true',default='True')
parser.add_argument('--cache-dir', type=str, default='./checkpoints')
args = parser.parse_args()

Expand Down Expand Up @@ -156,7 +156,7 @@ def preprocess_mask_info(global_state, image):
print('Valid checkpoint file:')
print(valid_checkpoints_dict)

init_pkl = 'stylegan_human_v2_512'
init_pkl = 'stylegan2_lions_512_pytorch'

with gr.Blocks() as app:

Expand Down

0 comments on commit 9303563

Please sign in to comment.