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

Api not releasing memory after inference #6

Open
briangrider opened this issue Jan 26, 2024 · 3 comments
Open

Api not releasing memory after inference #6

briangrider opened this issue Jan 26, 2024 · 3 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@briangrider
Copy link

briangrider commented Jan 26, 2024

Hi there,

I believe I almost have this all figured out and it's working great. One issue I'm having is that after infering one time using the API, memory usage stays very high (12.7gb out of 16), even though no processing is happening. This is happening on a macbook air m1 16gb. Is there a way to force rvc to release that memory usage after each api call? Thanks in advance!

@Tps-F
Copy link
Member

Tps-F commented Feb 4, 2024

It is still under development and I have not addressed that yet.
Fortunately, I have the same environment, so I'll fix it when I'm done implementing it for now!

@Tps-F Tps-F added bug Something isn't working help wanted Extra attention is needed enhancement New feature or request labels Feb 4, 2024
@mmlingyu
Copy link

i am also met it.

@m-pektas
Copy link

I faced the same issue. I tried to profile memory using memory_profiler and a part of the output following;

Mem usage    Increment  Occurrences   Line Contents
-------------------------------------------------------
2150.9 MiB   1049.0 MiB           1        _, (sr, output) = vc.vc_single(audio_path, const.f0method0, index_path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants