mirror of https://github.com/coqui-ai/TTS.git
Set the new_fields in copy_model_files as None by default
This commit is contained in:
parent
5ba416e2e8
commit
d0cb700e7d
|
@ -202,7 +202,7 @@ class Trainer:
|
||||||
os.makedirs(output_path, exist_ok=True)
|
os.makedirs(output_path, exist_ok=True)
|
||||||
|
|
||||||
# copy training assets to the output folder
|
# copy training assets to the output folder
|
||||||
copy_model_files(config, output_path, new_fields=None)
|
copy_model_files(config, output_path)
|
||||||
|
|
||||||
# init class members
|
# init class members
|
||||||
self.args = args
|
self.args = args
|
||||||
|
@ -274,7 +274,7 @@ class Trainer:
|
||||||
self.config.num_languages = self.model.language_manager.num_languages
|
self.config.num_languages = self.model.language_manager.num_languages
|
||||||
|
|
||||||
# update config file
|
# update config file
|
||||||
copy_model_files(self.config, self.output_path, None)
|
copy_model_files(self.config, self.output_path)
|
||||||
|
|
||||||
# setup criterion
|
# setup criterion
|
||||||
self.criterion = self.get_criterion(self.model)
|
self.criterion = self.get_criterion(self.model)
|
||||||
|
|
|
@ -26,7 +26,7 @@ class AttrDict(dict):
|
||||||
self.__dict__ = self
|
self.__dict__ = self
|
||||||
|
|
||||||
|
|
||||||
def copy_model_files(config: Coqpit, out_path, new_fields):
|
def copy_model_files(config: Coqpit, out_path, new_fields=None):
|
||||||
"""Copy config.json and other model files to training folder and add
|
"""Copy config.json and other model files to training folder and add
|
||||||
new fields.
|
new fields.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue