checkpoint_dir always overrides {save,load}_checkpoint_dir

This commit is contained in:
Josh Meyer 2021-07-30 07:57:11 -04:00
parent 979dccdf58
commit 1e79b8703d

View File

@ -76,10 +76,9 @@ class _SttConfig(Coqpit):
# Checkpoint dir logic # # Checkpoint dir logic #
if self.checkpoint_dir: if self.checkpoint_dir:
if not self.save_checkpoint_dir: # checkpoint_dir always overrides {save,load}_checkpoint_dir
self.save_checkpoint_dir = self.checkpoint_dir self.save_checkpoint_dir = self.checkpoint_dir
if not self.load_checkpoint_dir: self.load_checkpoint_dir = self.checkpoint_dir
self.load_checkpoint_dir = self.checkpoint_dir
else: else:
if not self.save_checkpoint_dir: if not self.save_checkpoint_dir:
self.save_checkpoint_dir = xdg.save_data_path( self.save_checkpoint_dir = xdg.save_data_path(