ksanjeevan / crnn-audio-classification

UrbanSound classification using Convolutional Recurrent Networks in PyTorch
MIT License
381 stars 80 forks source link

Trainable parameters: 0 #17

Closed qingge545 closed 3 years ago

qingge545 commented 3 years ago

when I run the run.py, I log the model,and get the print "AudioCRNN( (spec): MelspectrogramStretch() (net): ModuleDict( (main): Sequential() ) ) Trainable parameters: 0 Traceback (most recent call last): File "./run.py", line 175, in train_main(config, args.resume) File "./run.py", line 96, in train_main optimizer = getattr(torch.optim, opt_name)(trainable_params, **opt_args) File "/home/wyanqing/.conda/envs/yq/lib/python3.7/site-packages/torch/optim/adam.py", line 48, in init super(Adam, self).init(params, defaults) File "/home/wyanqing/.conda/envs/yq/lib/python3.7/site-packages/torch/optim/optimizer.py", line 47, in init raise ValueError("optimizer got an empty parameter list") ValueError: optimizer got an empty parameter list". it seems that there is some problems about the model . how should i fix this ,thanks!