Skip to content
New issue

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

output dimensions for vector quantize #168

Open
dorsa-zeinali opened this issue Oct 28, 2024 · 2 comments
Open

output dimensions for vector quantize #168

dorsa-zeinali opened this issue Oct 28, 2024 · 2 comments

Comments

@dorsa-zeinali
Copy link

Hi,
I have data that is the shape (batch, channel, height, width), I want to quantize it and I was wondering what the dimension of the vectorquantizer should be. I tried dim=height, but it produces something of dimensions [1, channel] when I need something of the dimension [batch, channel].
any help would be appreciated.
thanks

@lucidrains
Copy link
Owner

could you show a short example script? I can make the correction for you easier that way

@dorsa-zeinali
Copy link
Author

Screenshot 2024-10-28 at 1 25 36 PM Here is the description of my model. my code is rather long , should I include other information? although I solved the issue by setting the batch size to 1. If I train this network, will it also update the codebook with the optimizer? or will the updates just be ema ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants