Skip to content

Commit 309d095

Browse files
committed
update to latest vq library version
1 parent cc8bf88 commit 309d095

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'stylegan2_pytorch = stylegan2_pytorch.cli:main',
99
],
1010
},
11-
version = '1.2.3',
11+
version = '1.2.4',
1212
license='GPLv3+',
1313
description = 'StyleGan2 in Pytorch',
1414
author = 'Phil Wang',
@@ -28,7 +28,7 @@
2828
'torchvision',
2929
'pillow',
3030
'pytorch-fid',
31-
'vector-quantize-pytorch'
31+
'vector-quantize-pytorch>=0.1.0'
3232
],
3333
classifiers=[
3434
'Development Status :: 4 - Beta',

stylegan2_pytorch/stylegan2_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def forward(self, x):
605605
x = attn_block(x)
606606

607607
if exists(q_block):
608-
x, loss = q_block(x)
608+
x, _, loss = q_block(x)
609609
quantize_loss += loss
610610

611611
x = self.final_conv(x)

0 commit comments

Comments
 (0)