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