dvector icon indicating copy to clipboard operation
dvector copied to clipboard

RuntimeError: Unknown builtin op: torchaudio::sox_effects_apply_effects_tensor.

Open hackermengzhi opened this issue 1 year ago • 0 comments

When i run the usage,i encountered a problem: C:\Users\86151\Desktop\Voice-Recognize-system-master\Scripts\python.exe C:\Users\86151\Desktop\Voice-Recognize-system-master\dvector-master\demo.py Traceback (most recent call last): File "C:\Users\86151\Desktop\Voice-Recognize-system-master\dvector-master\demo.py", line 5, in wav2mel = torch.jit.load("wav2mel.pt") File "C:\Users\86151\Desktop\Voice-Recognize-system-master\lib\site-packages\torch\jit_serialization.py", line 162, in load cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes) # type: ignore[call-arg] RuntimeError: Unknown builtin op: torchaudio::sox_effects_apply_effects_tensor. Could not find any similar ops to torchaudio::sox_effects_apply_effects_tensor. This op may not exist or may not be currently supported in TorchScript. : File "code/torch/torchaudio/sox_effects/sox_effects.py", line 5 effects: List[List[str]], channels_first: bool=True) -> Tuple[Tensor, int]: _0, _1 = ops.torchaudio.sox_effects_apply_effects_tensor(tensor, sample_rate, effects, channels_first) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE return (_0, _1) 'apply_effects_tensor' is being compiled since it was called from 'SoxEffects.forward' Serialized File "code/torch/data/wav2mel.py", line 31 wav_tensor: Tensor, sample_rate: int) -> Tensor: _0 = torch.torchaudio.sox_effects.sox_effects.apply_effects_tensor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE _1 = _0(wav_tensor, sample_rate, self.effects, True, ) wav_tensor1, _2, = _1

System:Windows 11 torch :1.11.0+cu113 torchaudio:0.11.0+cu113 I saw that windows may have problems with sox,so is there any solvement to the problem?Like changing a package or something?

hackermengzhi avatar Jun 17 '23 13:06 hackermengzhi