vector-quantize-pytorch 1.17.2__tar.gz → 1.17.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/PKG-INFO +1 -1
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/pyproject.toml +1 -1
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/finite_scalar_quantization.py +0 -1
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/residual_vq.py +4 -1
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.github/workflows/build.yml +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.github/workflows/python-publish.yml +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.github/workflows/test.yml +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.gitignore +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/LICENSE +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/README.md +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/examples/autoencoder.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/examples/autoencoder_fsq.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/examples/autoencoder_lfq.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/images/fsq.png +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/images/lfq.png +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/images/vq.png +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/ruff.toml +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/tests/test_latent_quantization.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/tests/test_readme.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/__init__.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/latent_quantization.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/lookup_free_quantization.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/random_projection_quantizer.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/residual_fsq.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/residual_lfq.py +0 -0
- {vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/vector_quantize_pytorch/vector_quantize_pytorch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: vector-quantize-pytorch
|
|
3
|
-
Version: 1.17.
|
|
3
|
+
Version: 1.17.4
|
|
4
4
|
Summary: Vector Quantization - Pytorch
|
|
5
5
|
Project-URL: Homepage, https://pypi.org/project/vector-quantize-pytorch/
|
|
6
6
|
Project-URL: Repository, https://github.com/lucidrains/vector-quantizer-pytorch
|
|
@@ -149,8 +149,11 @@ class ResidualVQ(Module):
|
|
|
149
149
|
self.quantize_dropout_multiple_of = quantize_dropout_multiple_of # encodec paper proposes structured dropout, believe this was set to 4
|
|
150
150
|
|
|
151
151
|
# setting up the MLPs for implicit neural codebooks
|
|
152
|
+
|
|
153
|
+
self.mlps = None
|
|
152
154
|
|
|
153
|
-
|
|
155
|
+
if implicit_neural_codebook:
|
|
156
|
+
self.mlps = ModuleList([MLP(dim = codebook_dim, l2norm_output = first(self.layers).use_cosine_sim, **mlp_kwargs) for _ in range(num_quantizers - 1)])
|
|
154
157
|
|
|
155
158
|
# sharing codebook logic
|
|
156
159
|
|
{vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.github/workflows/build.yml
RENAMED
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/.github/workflows/test.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/examples/autoencoder_fsq.py
RENAMED
|
File without changes
|
{vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/examples/autoencoder_lfq.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.17.2 → vector_quantize_pytorch-1.17.4}/tests/test_latent_quantization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|