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 0de206dCopy full SHA for 0de206d
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.17',
7
license='MIT',
8
description = 'Vector Quantization - Pytorch',
9
long_description_content_type = 'text/markdown',
vector_quantize_pytorch/lookup_free_quantization.py
@@ -129,8 +129,8 @@ def indices_to_codes(
129
indices,
130
project_out = True
131
):
132
- is_img_or_video = indices.ndim >= 3
133
-
+ is_img_or_video = indices.ndim >= (3 + int(self.keep_num_codebooks_dim))
+ print(is_img_or_video)
134
if not self.keep_num_codebooks_dim:
135
indices = rearrange(indices, '... -> ... 1')
136
0 commit comments