From 25f04dda35bcfb6dc30cde4907de011a2cac2707 Mon Sep 17 00:00:00 2001 From: kafan1986 Date: Fri, 11 Nov 2022 23:46:51 +0530 Subject: [PATCH] Solves data type mismatch issue on windows Solves windows 11 error regarding mismatched data type. Expected data type is int64 and actual data type is int32 --- utils_vad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils_vad.py b/utils_vad.py index 46318af..889146c 100644 --- a/utils_vad.py +++ b/utils_vad.py @@ -61,7 +61,7 @@ class OnnxWrapper(): self.reset_states(batch_size) if sr in [8000, 16000]: - ort_inputs = {'input': x.numpy(), 'h': self._h, 'c': self._c, 'sr': np.array(sr)} + ort_inputs = {'input': x.numpy(), 'h': self._h, 'c': self._c, 'sr': np.array(sr, dtype='int64')} ort_outs = self.session.run(None, ort_inputs) out, self._h, self._c = ort_outs else: