kohillyang / mx-openpose

Mxnet version of https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation
http://notes.kohill.cn/openpose
25 stars 2 forks source link

error when running demo.py and model_test.py #4

Closed BackT0TheFuture closed 6 years ago

BackT0TheFuture commented 6 years ago

Hi, error message displayed when running demo.py and model_test.py. the model is latest you supplied in #2.

demo.py

[18:54:20] E:\DeepLearning\mxnet-cm39\src\nnvm\legacy_json_util.cc:190: Loa ding symbol saved by previous version v0.12.0. Attempting to upgrade... [18:54:20] E:\DeepLearning\mxnet-cm39\src\nnvm\legacy_json_util.cc:198: Sym bol successfully upgraded! set([]) set(['data']) demo.py:115: RuntimeWarning: invalid value encountered in divide vec = np.divide(vec, norm) demo.py:134: RuntimeWarning: invalid value encountered in greater criterion1 = len(np.nonzero(score_midpts > param['thre2'])[0]) > 0.8 * len(sco re_midpts) Traceback (most recent call last): File "demo.py", line 358, in main(args.images,args.prefix,args.epoch) File "demo.py", line 347, in main parse_heatpaf(oriImg,heatmap_avg,paf_avg) File "demo.py", line 261, in parse_heatpaf cv2.circle(img_ori,coo,3,colors[n],thickness = 3,) IndexError: list index out of range

model_test.py

[18:30:22] e:work\deeplearning\mxnet-cm39\src\operator\tensor../elemwise_op_c ommon.h:122: Check failed: assign(&dattr, (vec)[i]) Incompatible attr in node at 0-th output: expected [128,169,7,7], got [128,553,7,7] Traceback (most recent call last): File "model_test.py", line 20, in model.init_params(arg_params=newargs, aux_params=aux_args, allow_missing=Fal se,allow_extra=False) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\module\modul e.py", line 300, in init_params _impl(desc, arr, arg_params) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\module\modul e.py", line 288, in _impl cache_arr.copyto(arr) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\ndarray\ndar ray.py", line 1842, in copyto return _internal._copyto(self, out=other) File "", line 25, in _copyto File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet_ctypes\ndar ray.py", line 92, in _imperative_invoke ctypes.byref(out_stypes))) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\base.py", li ne 146, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [18:30:22] e:work\deeplearning\mxnet-cm39\src\operator\t ensor../elemwise_op_common.h:122: Check failed: assign(&dattr, (vec)[i]) Incom patible attr in node at 0-th output: expected [128,169,7,7], got [128,553,7,7]

kohillyang commented 6 years ago

I'll recheck that tonight, thansk for your issue.

At 2017-11-21 18:34:38, "goodtogood" notifications@github.com wrote:

Hi, error message displayed when running model_test.py. the model is latest you supplied in #2

[18:30:22] e:work\deeplearning\mxnet-cm39\src\operator\tensor../elemwise_op_c ommon.h:122: Check failed: assign(&dattr, (vec)[i]) Incompatible attr in node at 0-th output: expected [128,169,7,7], got [128,553,7,7] Traceback (most recent call last): File "model_test.py", line 20, in model.init_params(arg_params=newargs, aux_params=aux_args, allow_missing=Fal se,allow_extra=False) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\module\modul e.py", line 300, in init_params _impl(desc, arr, arg_params) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\module\modul e.py", line 288, in _impl cache_arr.copyto(arr) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\ndarray\ndar ray.py", line 1842, in copyto return _internal._copyto(self, out=other) File "", line 25, in _copyto File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet_ctypes\ndar ray.py", line 92, in _imperative_invoke ctypes.byref(out_stypes))) File "D:\Anaconda2\lib\site-packages\mxnet-0.12.1-py2.7.egg\mxnet\base.py", li ne 146, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [18:30:22] e:work\deeplearning\mxnet-cm39\src\operator\t ensor../elemwise_op_common.h:122: Check failed: assign(&dattr, (vec)[i]) Incom patible attr in node at 0-th output: expected [128,169,7,7], got [128,553,7,7]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kohillyang commented 6 years ago

I have no problem using the model i uploaded, could you provide your sha1sum? you can use command sha1sum yks_pose-8600.params to get it.

my result is 23b994c90c7b8c39e3dbcd65d0143a615327bc08

kohillyang commented 6 years ago

http://pan.baidu.com/s/1i5H2WHB

kohillyang commented 6 years ago

And Please Make sure you are using the latest code.

BackT0TheFuture commented 6 years ago

@kohillyang
sorry for my mistakes. It works now . thank you so much !