mirror of
https://github.com/neonbjb/tortoise-tts.git
synced 2026-03-15 09:53:51 +01:00
remove var
This commit is contained in:
parent
19f5250454
commit
be7c5056f7
|
|
@ -252,12 +252,9 @@ class TextToSpeech:
|
|||
self.rlg_diffusion = None
|
||||
@contextmanager
|
||||
def temporary_cuda(self, model):
|
||||
if self.high_vram:
|
||||
yield model
|
||||
else:
|
||||
m = model.to(self.device)
|
||||
yield m
|
||||
m = model.cpu()
|
||||
m = model.to(self.device)
|
||||
yield m
|
||||
m = model.cpu()
|
||||
|
||||
def load_cvvp(self):
|
||||
"""Load CVVP model."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue