You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While querying the vits model for a number of texts, there seems to be a memory leakage. The memory consumption almost linearly increases as the loop progresses.
To Reproduce
import os
import torch
from TTS.api import TTS
# Get device
device = "cpu"
tts = TTS("tts_models/en/vctk/vits").to(device)
texts_to_test = [
"some 112 pieces of text, each consisting of multiple lines ...."
]
speaker = tts.speakers[0]
num_requests = 0
for idx, txt in enumerate(texts_to_test):
wav = tts.tts(text=txt, speaker=speaker, speed=0.8)
To reproduce the issue just replace texts_to_test with a list of good number of texts (>100) and each text should consist of 2-3 lines.
I performed this experiment on a c2-standard-4 machine (gcp).
Expected behavior
The consumption of RAM should be stable and should not increase while running the given code.
Describe the bug
While querying the vits model for a number of texts, there seems to be a memory leakage. The memory consumption almost linearly increases as the loop progresses.
To Reproduce
To reproduce the issue just replace texts_to_test with a list of good number of texts (>100) and each text should consist of 2-3 lines.
I performed this experiment on a c2-standard-4 machine (gcp).
Expected behavior
The consumption of RAM should be stable and should not increase while running the given code.
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: