set model to eval when inferencing (very important)

This commit is contained in:
mrq 2023-08-05 04:29:05 +00:00
parent d89568a96e
commit d1b9770d41
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ __pycache__
/*.egg-info
/vall_e/version.py
/build
/.cache

View File

@ -24,6 +24,9 @@ class TTS():
else:
self.load_models( config )
self.ar.eval()
self.nar.eval()
self.loading = False
def load_models( self, config_path ):

View File

@ -5,7 +5,7 @@ from .data import create_train_val_dataloader
from .emb import qnt
from .utils import setup_logging, to_device, trainer, flatten_dict, do_gc
from .utils.trainer import load_engines
import auraloss
import json