Update app.py
Browse files
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
|
| 67 |
-
p = librosa.display.specshow(librosa.amplitude_to_db(stft_lr
|
| 68 |
-
p = librosa.display.specshow(librosa.amplitude_to_db(stft_recon
|
| 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
|