We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ebbc1 commit 3d4fca0Copy full SHA for 3d4fca0
setup.py
@@ -3,7 +3,7 @@
3
setup(
4
name = 'vector_quantize_pytorch',
5
packages = find_packages(),
6
- version = '1.9.16',
+ version = '1.9.18',
7
license='MIT',
8
description = 'Vector Quantization - Pytorch',
9
long_description_content_type = 'text/markdown',
vector_quantize_pytorch/lookup_free_quantization.py
@@ -129,7 +129,7 @@ def indices_to_codes(
129
indices,
130
project_out = True
131
):
132
- is_img_or_video = indices.ndim >= 3
+ is_img_or_video = indices.ndim >= (3 + int(self.keep_num_codebooks_dim))
133
134
if not self.keep_num_codebooks_dim:
135
indices = rearrange(indices, '... -> ... 1')
0 commit comments