remove var

This commit is contained in:
manmay-nakhashi 2023-07-16 01:06:19 +05:30
parent 19f5250454
commit be7c5056f7

View file

@ -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."""