CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

ConfigValue (bool): boolean argument expected

Open qingwang24 opened this issue 9 years ago • 2 comments

Hi, I trained a regression neural network. When I want to use "write" action, I got error as follows: EXCEPTION occurred: ConfigValue (bool): boolean argument expected

The config file is shown as follows: configparameters: Timit_SEWrite.config:command=Timit_SE_DNNWrite configparameters: Timit_SEWrite.config:precision=float configparameters: Timit_SEWrite.config:stderr=/home/log/log configparameters: Timit_SEWrite.config:Timit_SE_DNNWrite=[ action=write modelPath=/home/model_new/2048_sig_snat64_3leftfrs_dp0.1_lr0.01_2hid1024_80h/cntkSE.dnn deviceId=3 traceLevel=1 outputNodeNames=Speech.FF.P reader=[ deserializers = ( [ type = "HTKFeatureDeserializer" module = "HTKDeserializers" input = [ featIn = [ dim = 257 contextWindow = 3:0 scpFile = /home/scp/timit_noisex92_LPS_13unseen_coretest_noisy.scp ] ] ]: [ type = "HTKFeatureDeserializer" module = "HTKDeserializers" input = [ featNoise = [ dim = 64 scpFile = /home/scp/timit_noisex92_LPSnorm_13unseen_coretest_noise.scp ] ] ] ) ] writer=[ deserializers = ( [ type = "HTKFeatureDeserializer" module = "HTKDeserializers" output = [ Speech.FF.P = [ dim = 257 scpFile = /home/scp/timit_noisex92_LPS_13unseen_coretest_se.scp ] ] ] ) ] ]

And the log file is shown as follows: Reading script file /home/scp/timit_noisex92_LPS_13unseen_coretest_noisy.scp ... 14976 entries HTKDataDeserializer::HTKDataDeserializer: selected 14976 utterances grouped into 32 chunks, average chunk size: 468.0 utterances, 88161.9 frames (for I/O: 468.0 utterances, 88161.9 frames) HTKDataDeserializer::HTKDataDeserializer: determined feature kind as 257-dimensional 'USER' with frame shift 16.0 ms Reading script file /home/scp/timit_noisex92_LPSnorm_13unseen_coretest_noise.scp ... 14976 entries HTKDataDeserializer::HTKDataDeserializer: selected 14976 utterances grouped into 32 chunks, average chunk size: 468.0 utterances, 88161.9 frames (for I/O: 468.0 utterances, 88161.9 frames) HTKDataDeserializer::HTKDataDeserializer: determined feature kind as 64-dimensional 'USER' with frame shift 16.0 ms

[CALL STACK] [0x5b45ec]
[0x5ea7c1] bool Microsoft::MSR::CNTK::ConfigParameters:: operator() (wchar_t const*, bool const&) const + 0xc1 [0x7f0ae9e169fc] Microsoft::MSR::CNTK::CompositeDataReader:: CompositeDataReader (Microsoft::MSR::CNTK::ConfigParameters const&, std::shared_ptrMicrosoft::MSR::CNTK::MemoryProvider) + 0x59c [0x7f0ae9e2050c] + 0x1f50c [0x7f0aead8baaa] Microsoft::MSR::CNTK::ReaderShim:: Init (Microsoft::MSR::CNTK::ConfigParameters const&) + 0xfa [0x7f0aead65407] Microsoft::MSR::CNTK::DataReader:: DataReader Microsoft::MSR::CNTK::ConfigParameters(Microsoft::MSR::CNTK::ConfigParameters const&) + 0x907 [0x7da58b] void DoWriteOutput (Microsoft::MSR::CNTK::ConfigParameters const&) + 0xfb [0x60964c] void DoCommands (Microsoft::MSR::CNTK::ConfigParameters const&, std::shared_ptrMicrosoft::MSR::CNTK::MPIWrapper const&) + 0xd6c [0x5ad1df] wmainOldCNTKConfig (int, wchar_t**) + 0xb4f [0x5ad837] wmain1 (int, wchar_t**) + 0x77 [0x6078e8] main + 0xd8 [0x391ba1ed1d] __libc_start_main + 0xfd [0x5a5e11]
EXCEPTION occurred: ConfigValue (bool): boolean argument expected

Thanks a lot.

qingwang24 avatar Mar 25 '17 08:03 qingwang24

From the call stack it looks like the reader configuration is causing the problem. Maybe @eldakms has a better idea.

n17s avatar Jul 13 '17 16:07 n17s

In the "write" action you cannot use deserializers, you should use writers instead. i.e. either do not specify the deserializer at all (then the output will be in CSV), or specify HTKMLFWriter (if you need your output in htk format). i.e. for csv: write = [ action = write modelPath = "$RunDir$/models/cntkSpeech.dnn" outputNodeNames= reader = [ ... here use deserializers ...] outputPath = "$RunDir$/Output" ]

eldakms avatar Jul 17 '17 11:07 eldakms