Open xianglei3 opened 4 years ago
File "train.py", line 897, in ver_test acc1, std1, acc2, std2, xnorm, embeddings_list = verification.test(ver_list[i], model, args.batch_size, 10, data_extra, label_shape) File "eval/verification.py", line 265, in test _embeddings = net_out[0].asnumpy() File "/home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/ndarray/ndarray.py", line 1996, in asnumpy ctypes.c_size_t(data.size))) File "/home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/base.py", line 253, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [17:57:59] include/mxnet/././tensorblob.h:290: Check failed: this->shape.Size() == static_cast(shape.Size()) (2632734720 vs. 18446744072047319040) : TBlob.get_with_shape: new and old shape do not match total elements Stack trace: [bt] (0) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x4b09db) [0x7fba235f29db] [bt] (1) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x558579) [0x7fba2369a579] [bt] (2) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x23caed9) [0x7fba2550ced9] [bt] (3) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(mxnet::imperative::PushFCompute(std::function<void (nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::TBlob, std::allocator > const&, std::vector<mxnet::OpReqType, std::allocator > const&, std::vector<mxnet::TBlob, std::allocator > const&)> const&, nnvm::Op const, nnvm::NodeAttrs const&, mxnet::Context const&, std::vector<mxnet::engine::Var, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::engine::Var, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::Resource, std::allocator > const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> > const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray*> > const&, std::vector<unsigned int, std::allocator > const&, std::vector<mxnet::OpReqType, std::allocator > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const+0x307) [0x7fba257aabc7] [bt] (4) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25b46e4) [0x7fba256f66e4] [bt] (5) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c2301) [0x7fba25704301] [bt] (6) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c5644) [0x7fba25707644] [bt] (7) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c0a64) [0x7fba25702a64] [bt] (8) /home/xl/anaconda3/envs/test/bin/../lib/libstdc++.so.6(+0xc8421) [0x7fba7758e421]
The error message
new and old shape do not match total elements
suggests that you could feed incorrect data
File "train.py", line 897, in ver_test acc1, std1, acc2, std2, xnorm, embeddings_list = verification.test(ver_list[i], model, args.batch_size, 10, data_extra, label_shape) File "eval/verification.py", line 265, in test _embeddings = net_out[0].asnumpy() File "/home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/ndarray/ndarray.py", line 1996, in asnumpy ctypes.c_size_t(data.size))) File "/home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/base.py", line 253, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: [17:57:59] include/mxnet/././tensorblob.h:290: Check failed: this->shape.Size() == static_cast(shape.Size()) (2632734720 vs. 18446744072047319040) : TBlob.get_with_shape: new and old shape do not match total elements
Stack trace:
[bt] (0) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x4b09db) [0x7fba235f29db]
[bt] (1) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x558579) [0x7fba2369a579]
[bt] (2) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x23caed9) [0x7fba2550ced9]
[bt] (3) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(mxnet::imperative::PushFCompute(std::function<void (nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::TBlob, std::allocator > const&, std::vector<mxnet::OpReqType, std::allocator > const&, std::vector<mxnet::TBlob, std::allocator > const&)> const&, nnvm::Op const, nnvm::NodeAttrs const&, mxnet::Context const&, std::vector<mxnet::engine::Var, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::engine::Var, std::allocator<mxnet::engine::Var> > const&, std::vector<mxnet::Resource, std::allocator > const&, std::vector<mxnet::NDArray , std::allocator<mxnet::NDArray> > const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray*> > const&, std::vector<unsigned int, std::allocator > const&, std::vector<mxnet::OpReqType, std::allocator > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const+0x307) [0x7fba257aabc7]
[bt] (4) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25b46e4) [0x7fba256f66e4]
[bt] (5) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c2301) [0x7fba25704301]
[bt] (6) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c5644) [0x7fba25707644]
[bt] (7) /home/xl/anaconda3/envs/test/lib/python3.5/site-packages/mxnet/libmxnet.so(+0x25c0a64) [0x7fba25702a64]
[bt] (8) /home/xl/anaconda3/envs/test/bin/../lib/libstdc++.so.6(+0xc8421) [0x7fba7758e421]