Trouble with loading model using CNTK

时间:2019-04-17 00:48:57

标签: cntk

I am using trying to use a denoising module from a github repo, but while the script tries to load the model using load_model in cntk,I am experiencing the following error...

 File "main_denoising.py", line 95, in run
    super(Process, self).run()
  File "/root/anaconda3/envs/dihard18/lib/python3.5/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "main_denoising.py", line 193, in denoise_wav
    decode_model(noisy_normed_lps_scp_fn, tmp_dir, NFREQS, use_gpu, gpu_id)
  File "/dihard18/decode_model.py", line 68, in decode_model
    model_dnn = load_model(MODELF)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/site-packages/wurlitzer.py", line 291, in pipes
    yield stdout_r, stderr_r
  File "/dihard18/decode_model.py", line 68, in decode_model
    model_dnn = load_model(MODELF)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/site-packages/cntk/internal/swig_helper.py", line 69, in wrapper
    result = f(*args, **kwds)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/site-packages/cntk/ops/functions.py", line 1719, in load_model
    return Function.load(model, device, format)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/site-packages/cntk/internal/swig_helper.py", line 69, in wrapper
    result = f(*args, **kwds)
  File "/root/anaconda3/envs/dihard18/lib/python3.5/site-packages/cntk/ops/functions.py", line 1633, in load
    return cntk_py.Function.load(str(model), device, format.value)
RuntimeError: Failed to parse Dictionary from the input stream.

It will be extremely helpful if anyone shares a way to get rid of it, if someone has experienced the same. Thank you.

0 个答案:

没有答案