566e089f21fd004943e35652d39ed7becbdfe1ad,open_seq2seq/models/text2speech.py,,plot_spectrogram_w_target,#,23

Before Change


  if logdir[0] != "/":
    name = "./"+name
  //save
  fig.savefig(name, dpi=300)

  plt.close(fig)

def plot_spectrograms(specs, titles, target_sample, audio_length,

After Change


  cbar_ax3 = fig.add_axes([0.85, 0.1, 0.05, 0.14])
  fig.colorbar(colour5, cax=cbar_ax3)

  if save_to_tensorboard:
    tag = "{}_image".format(append)
    s = StringIO()
    fig.savefig(s, dpi=300)
    summary = tf.Summary.Image(encoded_image_string=s.getvalue(),
                                height=int(fig.get_figheight()*300),
                                width=int(fig.get_figwidth()*300))
    summary = tf.Summary.Value(tag=tag, image=summary)
    plt.close(fig)

    return summary

  else:
    if append:
      name = "{}/Output_step{}_{}_{}.png".format(logdir, train_step, number, append)
    else:
      name = "{}/Output_step{}_{}.png".format(logdir, train_step, number)
    if logdir[0] != "/":
      name = "./"+name
    //save
    fig.savefig(name, dpi=300)
    plt.close(fig)
    return None


def plot_spectrograms(specs, titles, target_sample, audio_length,
  logdir, train_step, number=0, append=False, vmin=None, vmax=None, save_to_tensorboard=False):
  num_figs = len(specs) + 1
  fig, ax = plt.subplots(nrows=num_figs, figsize=(8,num_figs*3))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 566e089f21fd004943e35652d39ed7becbdfe1ad
Time: 2018-06-21
Author: jasoli@nvidia.com
File Name: open_seq2seq/models/text2speech.py
Class Name:
Method Name: plot_spectrogram_w_target


Project Name: AlexEMG/DeepLabCut
Commit Name: 2b0745e74e436448c69e251d7c77845a82c0da72
Time: 2019-03-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/refine_training_dataset/outlier_frames.py
Class Name:
Method Name: PlottingSingleFramecv2


Project Name: AlexEMG/DeepLabCut
Commit Name: 2b0745e74e436448c69e251d7c77845a82c0da72
Time: 2019-03-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/refine_training_dataset/outlier_frames.py
Class Name:
Method Name: PlottingSingleFrame


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 566e089f21fd004943e35652d39ed7becbdfe1ad
Time: 2018-06-21
Author: jasoli@nvidia.com
File Name: open_seq2seq/models/text2speech.py
Class Name:
Method Name: plot_spectrograms