We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The new version of FSQ, with the possibility to not compute indices and return only None, has a small bug:
from vector_quantize_pytorch.finite_scalar_quantization import FSQ import torch quantizer = FSQ(levels=[8,5,5,5], return_indices=False) images = torch.rand(1, 4, 32, 32) quantizer(images)
the code above will raise a RuntimeError, as Einops try here to unpack None.
I will shortly propose a PR, which solves the issue and clean a bit the code, for better readability and ease of use.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The new version of FSQ, with the possibility to not compute indices and return only None, has a small bug:
the code above will raise a RuntimeError, as Einops try here to unpack None.
I will shortly propose a PR, which solves the issue and clean a bit the code, for better readability and ease of use.
The text was updated successfully, but these errors were encountered: