Correct mistake in len check

X-DeepSpeech: NOBUILD
This commit is contained in:
Reuben Morais 2019-04-11 11:10:45 -03:00
parent 91421a3466
commit 6a0c186b5c

View File

@ -46,7 +46,7 @@ def initialize_globals():
FLAGS.dropout_rate6 = FLAGS.dropout_rate
# Set default checkpoint dir
if not FLAGS.checkpoint_dir == 0:
if not FLAGS.checkpoint_dir:
FLAGS.checkpoint_dir = xdg.save_data_path(os.path.join('deepspeech', 'checkpoints'))
if FLAGS.load not in ['last', 'best', 'init', 'auto']: