LPRNet_Pytorch icon indicating copy to clipboard operation
LPRNet_Pytorch copied to clipboard

请问这是什么错误?

Open zengweigit opened this issue 1 year ago • 4 comments
trafficstars

Traceback (most recent call last): File "/opt/LPRNet_Pytorch/train_LPRNet.py", line 286, in <module> train() File "/opt/LPRNet_Pytorch/train_LPRNet.py", line 208, in train Greedy_Decode_Eval(lprnet, test_dataset, args) File "/opt/LPRNet_Pytorch/train_LPRNet.py", line 237, in Greedy_Decode_Eval targets = np.array([el.numpy() for el in targets]) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (120,) + inhomogeneous part.

zengweigit avatar Aug 08 '24 10:08 zengweigit

image

zengweigit avatar Aug 08 '24 10:08 zengweigit

image

请问您解决了吗?我也是同样的问题

IronmanVsThanos avatar Oct 23 '24 04:10 IronmanVsThanos

我也遇到这个问题了,请问有解决吗?

TanakaEmily avatar Feb 25 '25 08:02 TanakaEmily

换一下你的numpy版本,我的环境为python3.9 numpy1.23.0

yijie-0 avatar May 11 '25 15:05 yijie-0