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

Question on discrepancy between original data and reconstructed data sizes #238

Open
tysonjordan opened this issue Oct 13, 2023 · 1 comment

Comments

@tysonjordan
Copy link

I'm trying to reconstruct a single tensor using encodec's forward() and decode() methods. I'm getting different tensor lengths for my original tensor (161856) and my reconstructed tensor (161920). Is there some kind of padding that occurs during the encoding process? If so, am I able to simply trim the excess my reconstructed tensor, or should I make some adjustment before encoding?

I apologize if this is trivial!

@lucidrains
Copy link
Owner

@tysonjordan encodec is processed in frames, so they must be padding it to the next frame length

i think you should be able to safely trim it

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