vincentherrmann / pytorch-wavenet

An implementation of WaveNet with fast generation
MIT License
968 stars 225 forks source link

AttributeError: 'Conv1d' object has no attribute 'padding_mode' #27

Open kqu7 opened 5 years ago

kqu7 commented 5 years ago

When I tried to generate the sample audio files by the command "python generate_script.py", the following error message popped up:

_Traceback (most recent call last): File "generate_script.py", line 32, in regularize=0.) File "/Users/q7/Desktop/Wavenet/pytorch-wavenet-master/wavenet_model.py", line 262, in generate_fast dilation_func=self.queue_dilate) File "/Users/q7/Desktop/Wavenet/pytorch-wavenet-master/wavenet_model.py", line 127, in wavenet x = self.start_conv(input) File "/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call result = self.forward(*input, **kwargs) File "/anaconda3/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 190, in forward if self.padding_mode == 'circular': File "/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 539, in getattr type(self).name, name)) AttributeError: 'Conv1d' object has no attribute 'paddingmode'

Can someone propose any solutions? Thanks in advance!