crnn-audio-classification
crnn-audio-classification copied to clipboard
Error while training using notebook
!python run.py train -c my-config.json --cfg crnn.cfg
Compose(
ProcessChannels(mode=avg)
AdditiveNoise(prob=0.3, sig=0.001, dist_type=normal)
RandomCropLength(prob=0.4, sig=0.25, dist_type=half)
ToTensorAudio()
)
Traceback (most recent call last):
File "run.py", line 176, in
Same
same
Same.
Converted tensor to Long and was welcomed with new errors
Hi, I got the same error before and successfully run the program by changing the Pytorch version.
conda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch
pip install pillow=6.2.2
Hi, I got the same error before and successfully run the program by changing the Pytorch version.
conda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch pip install pillow=6.2.2
it solves my problem ,thx
Changing the 40th line in base_layers.py file in the torchparse package works for me.
- return torch.cat([channel, spatial])
+ return torch.cat([channel, spatial.long()])