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

Inference using a GPU #4

Closed
playdasegunda opened this issue Oct 31, 2022 · 2 comments
Closed

Inference using a GPU #4

playdasegunda opened this issue Oct 31, 2022 · 2 comments
Labels
question Further information is requested

Comments

@playdasegunda
Copy link

❓ Questions

Hello, my question is the following, i would like to know if it's possible in any way to use cuda acceleration to process compressing and decompressing using Encodec? from what i've been reading i couldn't find anything that mentioned inference by gpu.. so i wanted to know if it's possible to use the gpu, that would be even more productive and useful, awaiting an answer, thank you in advance, att. Lucas.

@playdasegunda playdasegunda added the question Further information is requested label Oct 31, 2022
@mimbres
Copy link

mimbres commented Oct 31, 2022

@lucasbr15 Yes, it's possible with a few lines of modifications. Take a look at my forked repo or https://github.com/mimbres/encodec/blob/main/encodec/__main__.py

  • '-g' or '--gpu' option is added for the use of GPU.
  • '-t' or '--time' option for displaying elapse time.

@playdasegunda
Copy link
Author

@mimbres I'm really grateful for your repository now that it's using the gpu it's much faster, before a 3 minute audio took 1m 30s, now it only takes 20 seconds! once again, thank you!

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

No branches or pull requests

2 participants