fingerprinted now should work correctly

This commit is contained in:
Si11ium
2020-05-20 13:29:16 +02:00
parent 196b1af7ae
commit b87a56e8c6
3 changed files with 4 additions and 2 deletions

View File

@ -125,4 +125,5 @@ class MelToImage(object):
img = scale_minmax(mels, 0, 255).astype(np.uint8)
img = np.flip(img, axis=0) # put low frequencies at the bottom in image
img = 255 - img # invert. make black==more energy
img = img.astype(np.float32)
return img