Error to read PDNN nnet with kaldi
freyes85 opened this issue · comments
Hi all!
I'm trying to extract bnf (steps_pdnn/make_bnf_feat.sh) using a nnet with "rectifier" activation function trained with PDNN and the nnet-forward function from kaldi tells me that it does not recognize that marker component.
It seems that a pdnn nnet with ReLu cant be read by kaldi. How can i convert the PDNN nnet model to Kaldi nnet model, to recognize the model type.
thx in advance
Flavio
Do you have any error messages?
I'm not familiar with the Kaldi nnet model, but I may be able to make something out of the error message...
I see that the ReLU activation function can be called either "rectifier" or "relu" in PDNN.
But in Kaldi, neither is a valid name for a nnet component.
I'm surprised that Kaldi nnet doesn't support the ReLU activation function.
If you need it, you may have to modify the files nnet-component.cc and nnet-component.h to add support for ReLU.
Kaldi already has implementations of other activation functions like sigmoid and tanh. I hope it's not hard to implement ReLU as well.
Sorry, I don't have a ready implementation...