9144bd2989a233859ff54802f3fe8db292c7121b,magenta/models/coconet/coconet_evaluate.py,,main,#Any#,35

Before Change




def main(unused_argv):
  if FLAGS.checkpoint is None or not FLAGS.checkpoint:
    raise ValueError(
        "Need to provide a path to checkpoint directory.")
  wmodel = lib_graph.load_checkpoint(FLAGS.checkpoint)
  if FLAGS.eval_logdir is None:
    raise ValueError(
        "Set flag eval_logdir to specify a path for saving eval statistics.")

After Change


      raise ValueError(
          "Need to provide a path to checkpoint directory or use an "
          "eval_logdir with only 1 checkpoint subdirectory.")
  wmodel = lib_graph.load_checkpoint(checkpoint_dir)
  if FLAGS.eval_logdir is None:
    raise ValueError(
        "Set flag eval_logdir to specify a path for saving eval statistics.")
  else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/magenta
Commit Name: 9144bd2989a233859ff54802f3fe8db292c7121b
Time: 2018-05-07
Author: curtis@thefjord.org
File Name: magenta/models/coconet/coconet_evaluate.py
Class Name:
Method Name: main


Project Name: mozilla/TTS
Commit Name: 50fee59a2c60ca711b7959baa1711d586aa49758
Time: 2021-01-21
Author: erogol@hotmail.com
File Name: TTS/server/synthesizer.py
Class Name: Synthesizer
Method Name: load_tts


Project Name: GRAAL-Research/pytoune
Commit Name: f97790bcf4aba7b4efc713af567bbd5e6f1af57e
Time: 2019-09-27
Author: 39306007+TortillasAlfred@users.noreply.github.com
File Name: poutyne/framework/experiment.py
Class Name: Experiment
Method Name: test