vector-quantize-pytorch 1.22.1__tar.gz → 1.22.2__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.22.1 → vector_quantize_pytorch-1.22.2}/PKG-INFO +1 -1
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/pyproject.toml +1 -1
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/tests/test_readme.py +1 -2
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/finite_scalar_quantization.py +1 -1
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.github/workflows/build.yml +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.github/workflows/python-publish.yml +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.github/workflows/test.yml +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.gitignore +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/LICENSE +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/README.md +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_fsq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_lfq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_sim_vq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/images/fsq.png +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/images/lfq.png +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/images/simvq.png +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/images/vq.png +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/ruff.toml +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/tests/test_latent_quantization.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/tests/test_lfq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/__init__.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/latent_quantization.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/lookup_free_quantization.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/random_projection_quantizer.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/residual_fsq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/residual_lfq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/residual_sim_vq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/residual_vq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/sim_vq.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/utils.py +0 -0
- {vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/vector_quantize_pytorch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vector-quantize-pytorch
|
|
3
|
-
Version: 1.22.
|
|
3
|
+
Version: 1.22.2
|
|
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
|
|
@@ -71,8 +71,7 @@ def test_vq_mask():
|
|
|
71
71
|
assert (mask_quantized[:, 512:] == 0.).all()
|
|
72
72
|
assert (mask_indices[:, 512:] == -1).all()
|
|
73
73
|
|
|
74
|
-
@pytest.mark.parametrize('implicit_neural_codebook', (True, False))
|
|
75
|
-
@pytest.mark.parametrize('use_cosine_sim', (True, False))
|
|
74
|
+
@pytest.mark.parametrize('implicit_neural_codebook, use_cosine_sim', ((True, False), (False, True), (False, False)))
|
|
76
75
|
@pytest.mark.parametrize('train', (True, False))
|
|
77
76
|
@pytest.mark.parametrize('shared_codebook', (True, False))
|
|
78
77
|
def test_residual_vq(
|
|
@@ -158,7 +158,7 @@ class FSQ(Module):
|
|
|
158
158
|
torch.full((batch,), noise_dropout, device = device)
|
|
159
159
|
).bool()
|
|
160
160
|
|
|
161
|
-
quantized =
|
|
161
|
+
quantized = einx.where('b, b ..., b ...', quantize_mask, unquantized, quantized)
|
|
162
162
|
|
|
163
163
|
# determine where to add a random offset elementwise
|
|
164
164
|
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.github/workflows/build.yml
RENAMED
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/.github/workflows/test.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_fsq.py
RENAMED
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_lfq.py
RENAMED
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/examples/autoencoder_sim_vq.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/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
|
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/sim_vq.py
RENAMED
|
File without changes
|
{vector_quantize_pytorch-1.22.1 → vector_quantize_pytorch-1.22.2}/vector_quantize_pytorch/utils.py
RENAMED
|
File without changes
|
|
File without changes
|