maxsize 3 for LRU cache for RVC
Feature was introduced in https://github.com/erew123/alltalk_tts/pull/383 but without maxsize, which meant rvc models would never get unloaded
This commit is contained in:
1 parent
9317203f5a
commit
f8516e5a14
1 file changed
+1
-1
@@ -171,7 +171,7 @@ def voice_conversion(
|
||||
return None, None
|
||||
|
||||
|
||||
@lru_cache
|
||||
@lru_cache(maxsize=3)
|
||||
def get_vc(weight_root, sid, file_index=None, training_data_size=10000, debug_rvc=False):
|
||||
net_g = None
|
||||
branding="AllTalk "
|
||||
|
||||
Reference in new issue
Block a user