diff --git a/SpecAugment.py b/SpecAugment.py index ddefeee..aafe3c7 100644 --- a/SpecAugment.py +++ b/SpecAugment.py @@ -1,3 +1,5 @@ +import os +os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" import librosa import librosa.display import matplotlib.pyplot as plt @@ -20,6 +22,7 @@ plt.figure(figsize=(10, 6)) librosa.display.specshow(spectrogram, sr=sr, x_axis='time', y_axis='log') plt.colorbar(format='%+2.0f dB') plt.title('origin spectrogram') + plt.savefig('origin_spectrogram.png') diff --git a/origin_spectrogram.png b/origin_spectrogram.png new file mode 100644 index 0000000..e9552d0 Binary files /dev/null and b/origin_spectrogram.png differ diff --git a/spec_augment.png b/spec_augment.png new file mode 100644 index 0000000..7e4428b Binary files /dev/null and b/spec_augment.png differ