Convert to RGB
This commit is contained in:
parent
9ab8c0f105
commit
1c5caf77ac
|
@ -106,8 +106,10 @@ def image_from_spectrogram(
|
|||
# Flip Y
|
||||
image = image.transpose(Image.FLIP_TOP_BOTTOM)
|
||||
|
||||
return image
|
||||
# Convert to RGB
|
||||
image = image.convert("RGB")
|
||||
|
||||
return image
|
||||
|
||||
def spectrogram_from_waveform(
|
||||
waveform: np.ndarray,
|
||||
|
|
Loading…
Reference in New Issue