kerasyolov3模型中预期输入和目标的格式和形状

2024-06-24 11:43:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用create_tiny_模型(https://github.com/qqwweee/keras-yolo3/blob/master/train.py#L135)来创建模型体 我正在尝试使用该模型,使用批量训练(x=输入批量,y=目标)

输入批次和目标的格式和形状应该是什么

当我将input_batch设置为具有形状(batch_size,416416,3)的numPy数组,其中(416416,3)是每个图像的形状时,我看到以下错误

ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 3 array(s), but instead got the following list of 1 arrays: