Compare commits

..

1 Commits

Author SHA1 Message Date
Phil Wang
e024971dc3 complete vit-vqgan from https://arxiv.org/abs/2110.04627 2022-04-26 17:04:18 -07:00
2 changed files with 5 additions and 3 deletions

View File

@@ -495,10 +495,12 @@ class ViTEncDec(nn.Module):
layers = layers
),
nn.Sequential(
nn.Linear(dim, dim * 4, bias = False),
nn.Linear(dim, dim * 2, bias = False),
nn.Tanh(),
nn.Linear(dim * 4, input_dim, bias = False),
nn.Linear(dim * 2, dim, bias = False),
),
nn.LayerNorm(dim),
nn.Linear(dim, input_dim),
RearrangeImage(),
Rearrange('b h w (p1 p2 c) -> b c (h p1) (w p2)', p1 = patch_size, p2 = patch_size)
)

View File

@@ -10,7 +10,7 @@ setup(
'dream = dalle2_pytorch.cli:dream'
],
},
version = '0.0.54',
version = '0.0.53',
license='MIT',
description = 'DALL-E 2',
author = 'Phil Wang',