mirror of https://github.com/coqui-ai/TTS.git
parent
c8b9ca3d71
commit
39004484b9
|
@ -103,8 +103,8 @@ synthesizer = Synthesizer(
|
|||
model_path, config_path, speakers_file_path, vocoder_path, vocoder_config_path, use_cuda=args.use_cuda
|
||||
)
|
||||
|
||||
use_multi_speaker = synthesizer.tts_model.speaker_manager is not None and synthesizer.tts_model.num_speakers > 1
|
||||
speaker_manager = synthesizer.tts_model.speaker_manager if hasattr(synthesizer.tts_model, "speaker_manager") else None
|
||||
use_multi_speaker = hasattr(synthesizer.tts_model, "speaker_manager") and synthesizer.tts_model.num_speakers > 1
|
||||
speaker_manager = getattr(synthesizer.tts_model, "speaker_manager", None)
|
||||
# TODO: set this from SpeakerManager
|
||||
use_gst = synthesizer.tts_config.get("use_gst", False)
|
||||
app = Flask(__name__)
|
||||
|
|
|
@ -820,7 +820,7 @@ class Trainer:
|
|||
"""🏃 train -> evaluate -> test for the number of epochs."""
|
||||
if self.restore_step != 0 or self.args.best_path:
|
||||
print(" > Restoring best loss from " f"{os.path.basename(self.args.best_path)} ...")
|
||||
self.best_loss = load_fsspec(self.args.best_path, map_location="cpu")["model_loss"]
|
||||
self.best_loss = load_fsspec(self.args.restore_path, map_location="cpu")["model_loss"]
|
||||
print(f" > Starting with loaded last best loss {self.best_loss}.")
|
||||
|
||||
self.total_steps_done = self.restore_step
|
||||
|
|
Loading…
Reference in New Issue