-
I am trying to load a pre-trained MobileNet, this is the code,
And this is the error I see, `/usr/local/lib/python2.7/dist-packages/mxnet/model.pyc in load_checkpoint(prefix, epoch) /usr/local/lib/python2.7/dist-packages/mxnet/symbol/symbol.pyc in load(fname) /usr/local/lib/python2.7/dist-packages/mxnet/base.pyc in check_call(ret) MXNetError: [16:49:36] /home/travis/build/dmlc/mxnet-distro/mxnet-build/3rdparty/dmlc-core/include/dmlc/././json.h:731: Check failed: ch == '{' (60 vs. {) : Error at Line 5, around ^ Need help to fix this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@MOAZ47 it appears your file is invalid. It's a html file but we expect a json file. |
Beta Was this translation helpful? Give feedback.
-
I was trying a few things randomly, and have resolved the issue. In the beginning, I was using mxnet to download the "JSON" and "Param" file. Below is the code I used
Instead of using mxnet, I did "! git clone https://github.com/KeyKy/mobilenet-mxnet" to download the repo, and it worked. I don't know how but it works. |
Beta Was this translation helpful? Give feedback.
I was trying a few things randomly, and have resolved the issue. In the beginning, I was using mxnet to download the "JSON" and "Param" file. Below is the code I used
mx.test_utils.download(path+'blob/master/mobilenet_v2-0000.params')
Instead of using mxnet, I did "! git clone https://github.com/KeyKy/mobilenet-mxnet" to download the repo, and it worked. I don't know how but it works.
So if anyone out there can explain the difference between using mxnet to download and git clone, I will really appreciate it.