logo
Browse Source

Update

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
236a62af5c
  1. 2
      nn_fingerprint.py

2
nn_fingerprint.py

@ -120,7 +120,7 @@ class NNFingerprint(NNOperator):
audio = numpy.hstack(frames) audio = numpy.hstack(frames)
if len(audio.shape) == 1: if len(audio.shape) == 1:
audio = audio[None, :] audio = audio[None, :]
audio = self.int2float(audio, dtype='float32')
audio = self.int2float(audio)
audio = torch.from_numpy(audio) audio = torch.from_numpy(audio)
assert len(audio.shape) == 2 assert len(audio.shape) == 2

Loading…
Cancel
Save