{"action":"created","issue":{"url":"https://api.github.com/repos/api-ai/asr-server/issues/7","repository_url":"https://api.github.com/repos/api-ai/asr-server","labels_url":"https://api.github.com/repos/api-ai/asr-server/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/api-ai/asr-server/issues/7/comments","events_url":"https://api.github.com/repos/api-ai/asr-server/issues/7/events","html_url":"https://github.com/api-ai/asr-server/issues/7","id":175928756,"number":7,"title":"Error with my own Model","user":{"login":"sameerkhurana10","id":7698301,"avatar_url":"https://avatars.githubusercontent.com/u/7698301?v=3","gravatar_id":"","url":"https://api.github.com/users/sameerkhurana10","html_url":"https://github.com/sameerkhurana10","followers_url":"https://api.github.com/users/sameerkhurana10/followers","following_url":"https://api.github.com/users/sameerkhurana10/following{/other_user}","gists_url":"https://api.github.com/users/sameerkhurana10/gists{/gist_id}","starred_url":"https://api.github.com/users/sameerkhurana10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameerkhurana10/subscriptions","organizations_url":"https://api.github.com/users/sameerkhurana10/orgs","repos_url":"https://api.github.com/users/sameerkhurana10/repos","events_url":"https://api.github.com/users/sameerkhurana10/events{/privacy}","received_events_url":"https://api.github.com/users/sameerkhurana10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-09T05:01:58Z","updated_at":"2016-09-12T15:03:18Z","closed_at":null,"body":"Hi,\r\n\r\nI am getting the following error when I use my own model.\r\n\r\n{\"status\":\"error\",\"data\":[{\"text\":\"Assertion failed: features.NumCols() == mfcc_dim + ivector_dim && \"Mismatch in features dim\"\r\nStack trace is:\r\nkaldi::KaldiGetStackTrace()\r\nkaldi::KaldiAssertFailure_(char const*, char const*, int, char const*)\r\nkaldi::nnet3::DecodableNnet3SimpleOnline::ComputeForFrame(int)\r\nkaldi::nnet3::DecodableNnet3SimpleOnline::LogLikelihood(int, int)\r\nkaldi::LatticeFasterOnlineDecoder::ProcessEmitting(kaldi::DecodableInterface*)\r\nkaldi::LatticeFasterOnlineDecoder::AdvanceDecoding(kaldi::DecodableInterface*, int)\r\nkaldi::SingleUtteranceNnet3Decoder::AdvanceDecoding()\r\napiai::Nnet3LatgenFasterDecoder::AcceptWaveform(float, kaldi::VectorBase<float> const&, bool)\r\napiai::OnlineDecoder::Decode(apiai::Request&, apiai::Response&)\r\napiai::FcgiDecodingApp::ProcessingRoutine(apiai::Decoder&)\r\napiai::FcgiDecodingApp::Run(int, char**)\r\n../asr-server/fcgi-nnet3-decoder(main+0x5f) [0x8267cc]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f821c563f45]\r\n../asr-server/fcgi-nnet3-decoder() [0x8266a9]\r\n\r\n[stack trace: ]\r\nkaldi::KaldiGetStackTrace()\r\nkaldi::MessageLogger::~MessageLogger()\r\nkaldi::KaldiAssertFailure_(char const*, char const*, int, char const*)\r\nkaldi::nnet3::DecodableNnet3SimpleOnline::ComputeForFrame(int)\r\nkaldi::nnet3::DecodableNnet3SimpleOnline::LogLikelihood(int, int)\r\nkaldi::LatticeFasterOnlineDecoder::ProcessEmitting(kaldi::DecodableInterface*)\r\nkaldi::LatticeFasterOnlineDecoder::AdvanceDecoding(kaldi::DecodableInterface*, int)\r\nkaldi::SingleUtteranceNnet3Decoder::AdvanceDecoding()\r\napiai::Nnet3LatgenFasterDecoder::AcceptWaveform(float, kaldi::VectorBase<float> const&, bool)\r\napiai::OnlineDecoder::Decode(apiai::Request&, apiai::Response&)\r\napiai::FcgiDecodingApp::ProcessingRoutine(apiai::Decoder&)\r\napiai::FcgiDecodingApp::Run(int, char**)\r\n../asr-server/fcgi-nnet3-decoder(main+0x5f) [0x8267cc]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f821c563f45]\r\n../asr-server/fcgi-nnet3-decoder() [0x8266a9]\r\n\r\n\"}]}\r\n\r\nMy model is trained using MFCC + I-Vectors. It is the chain-tdnn model. mfcc.conf file looks like:\r\n\r\n--use-energy=false   # use average of log energy, not energy.\r\n--sample-frequency=16000 #  Switchboard is sampled at 8kHz\r\n--num-mel-bins=40     # similar to Google's setup.\r\n--num-ceps=40     # there is no dimensionality reduction.\r\n--low-freq=40    # low cutoff frequency for mel bins\r\n--high-freq=-200 # high cutoff frequently, relative to Nyquist of 4000 (=3800)\r\n\r\nI believe the error is due to using mfcc+i-vectors. is there a quick fix for this?"},"comment":{"url":"https://api.github.com/repos/api-ai/asr-server/issues/comments/246377061","html_url":"https://github.com/api-ai/asr-server/issues/7#issuecomment-246377061","issue_url":"https://api.github.com/repos/api-ai/asr-server/issues/7","id":246377061,"user":{"login":"realill","id":8237297,"avatar_url":"https://avatars.githubusercontent.com/u/8237297?v=3","gravatar_id":"","url":"https://api.github.com/users/realill","html_url":"https://github.com/realill","followers_url":"https://api.github.com/users/realill/followers","following_url":"https://api.github.com/users/realill/following{/other_user}","gists_url":"https://api.github.com/users/realill/gists{/gist_id}","starred_url":"https://api.github.com/users/realill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realill/subscriptions","organizations_url":"https://api.github.com/users/realill/orgs","repos_url":"https://api.github.com/users/realill/repos","events_url":"https://api.github.com/users/realill/events{/privacy}","received_events_url":"https://api.github.com/users/realill/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T15:03:18Z","updated_at":"2016-09-12T15:03:18Z","body":"@folomeev kaldi already support this in main branch. We should avoid copy-paste, and just reuse kaldi decoder directly."}}
{"actor":{"display_login":"realill"}}