[GH-ISSUE #6] Api not releasing memory after inference #6

Open
opened 2026-10-20 09:52:58 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @briangrider on GitHub (Jan 26, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/6

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!

Originally created by @briangrider on GitHub (Jan 26, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/6 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!
Author
Owner

@Tps-F commented on GitHub (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!

<!-- gh-comment-id:1925616546 --> @Tps-F commented on GitHub (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!
Author
Owner

@mmlingyu commented on GitHub (May 29, 2024):

i am also met it.

<!-- gh-comment-id:2137196580 --> @mmlingyu commented on GitHub (May 29, 2024): i am also met it.
Author
Owner

@m-pektas commented on GitHub (Jul 22, 2024):

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)
<!-- gh-comment-id:2242410976 --> @m-pektas commented on GitHub (Jul 22, 2024): 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion#6
No description provided.