XDHDD commited on
Commit
adb8651
1 Parent(s): 1244a94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -63,9 +63,9 @@ def visualize(hr, lr, recon):
63
  ax3.title.set_text('Улучшенный сигнал')
64
 
65
  canvas = FigureCanvas(fig)
66
- p = librosa.display.specshow(librosa.amplitude_to_db(stft_hr, ref=np.max), ax=ax1, y_axis='log', x_axis='time', sr=sr)
67
- p = librosa.display.specshow(librosa.amplitude_to_db(stft_lr, ref=np.max), ax=ax2, y_axis='log', x_axis='time', sr=sr)
68
- p = librosa.display.specshow(librosa.amplitude_to_db(stft_recon, ref=np.max), ax=ax3, y_axis='log', x_axis='time', sr=sr)
69
  return fig
70
 
71
  packet_size = CONFIG.DATA.EVAL.packet_size
 
63
  ax3.title.set_text('Улучшенный сигнал')
64
 
65
  canvas = FigureCanvas(fig)
66
+ p = librosa.display.specshow(librosa.amplitude_to_db(stft_hr), ax=ax1, y_axis='log', x_axis='time', sr=sr)
67
+ p = librosa.display.specshow(librosa.amplitude_to_db(stft_lr), ax=ax2, y_axis='log', x_axis='time', sr=sr)
68
+ p = librosa.display.specshow(librosa.amplitude_to_db(stft_recon), ax=ax3, y_axis='log', x_axis='time', sr=sr)
69
  return fig
70
 
71
  packet_size = CONFIG.DATA.EVAL.packet_size