bs, ns, c = boxes.shape ValueError: not enough values to unpack (expected 3, got 2)
时间: 2023-11-17 14:25:21 浏览: 162
解决yolov7训练ValueError:not enough values to unpack(expected 3,got0
3星 · 编辑精心推荐
This error message is indicating that the function or code is expecting three values to be unpacked from the variable "boxes.shape", but it is only receiving two.
The variable "boxes.shape" likely contains the dimensions of a numpy array or a tuple. To unpack the values, the code is expecting three variables to be assigned the values of the three dimensions, but it is only receiving two.
To fix this error, make sure that the variable "boxes.shape" contains the correct number of dimensions and that the code is correctly unpacking the values.
阅读全文