diff --git a/DeepSpeech.py b/DeepSpeech.py index 72ed9173..c8afc030 100755 --- a/DeepSpeech.py +++ b/DeepSpeech.py @@ -890,6 +890,7 @@ def main(_): if len(FLAGS.worker_hosts) == 0: # Only one local task: this process (default case - no cluster) with tf.Graph().as_default(): + tf.set_random_seed(FLAGS.random_seed) train() # Now do a final test epoch if FLAGS.test: diff --git a/util/flags.py b/util/flags.py index 34456b97..4925b733 100644 --- a/util/flags.py +++ b/util/flags.py @@ -111,7 +111,7 @@ def create_flags(): # Initialization - tf.app.flags.DEFINE_integer ('random_seed', 4567, 'default random seed that is used to initialize variables') + tf.app.flags.DEFINE_integer ('random_seed', 4568, 'default random seed that is used to initialize variables') # Early Stopping