Skip to content

Commit

Permalink
📑 Add colab link
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jan 9, 2020
1 parent ac9a12f commit 19f7fed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
StyleGAN Zoo
============
[<img src="https://colab.research.google.com/assets/colab-badge.svg" align="center">](https://colab.research.google.com/drive/1HHfyYCfnat4jhOnu34gqotRqzBiDeE_-)

Base on https://github.com/podgorskiy/StyleGAN_Blobless

Expand Down
16 changes: 8 additions & 8 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def style_horo(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v1.1.0/Horo-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v1.1.0/Horo-512x512-822ee4.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -47,7 +47,7 @@ def style_asashio(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.2.0/Asashio-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.2.0/Asashio-512x512-a3c21a.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -63,7 +63,7 @@ def style_anime_head(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.1.0/AnimeHead-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.1.0/AnimeHead-512x512-960a82.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -79,7 +79,7 @@ def style_anime_face_a(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceD-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceC-512x512-47055c.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -95,7 +95,7 @@ def style_anime_face_b(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceC-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceA-512x512-feaff1.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -111,7 +111,7 @@ def style_anime_face_c(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceB-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceB-512x512-41bdee.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -127,7 +127,7 @@ def style_anime_face_d(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceA-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceD-512x512-3e59ff.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand All @@ -143,7 +143,7 @@ def style_anime_face_e(pretrained=False):
mode='asuka'
)
if pretrained:
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceE-512x512.mat'
checkpoint = 'https://github.com/GalAster/StyleGAN-Zoo/releases/download/v2.0.0/AnimeFaceE-512x512-9cfc38.mat'
model.load_state_dict(_download(checkpoint, progress=True))
return model

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
author='aster',
author_email='[email protected]',
url='https://github.com/GalAster/StyleGAN-Zoo',
version='0.13.0',
version='0.13.1',
description='none',

packages=['sgan'],
Expand Down
2 changes: 1 addition & 1 deletion sgan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, method: str, gene=None, data=None):
self.data = data
if gene is None:
latents = torch.randn(1, 512)
self.gene = torch.tensor(latents).float()
self.gene = torch.tensor(latents)
else:
self.gene = gene

Expand Down

0 comments on commit 19f7fed

Please sign in to comment.