sirius-ai / LPRNet_Pytorch

Pytorch Implementation For LPRNet, A High Performance And Lightweight License Plate Recognition Framework.
Apache License 2.0
936 stars 233 forks source link

请问这是什么错误? #94

Open zengweigit opened 3 months ago

zengweigit commented 3 months ago

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 commented 3 months ago

image

IronmanVsThanos commented 1 month ago

image

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