关于输入大小不一的图像的问题,官方文档说只要设置比输入数据维数大的值占位即可,但报错
Created by: freekoy
PaddlePaddle提供的 paddle.data_type.dense_array 支持维数可变的数据输入。在使用时,将对应数据层的维数设置成一个大于输入数据维数的值用于占位即可。 http://www.paddlepaddle.org/docs/0.14.0/documentation/zh/faq/model/index_cn.html 报错如下
Input layer pixel: Incorrect input image size 88 * 89 for input image pixels 7840 Traceback (most recent call last): File "train.py", line 94, in testMNIST.start_trainer() File "train.py", line 53, in start_trainer trainer = self.get_trainer() File "train.py", line 17, in get_trainer out = convolutional_neural_network() .... File "/usr/lib64/python2.7/site-packages/paddle/trainer/config_parser.py", line 4341, in my_fatal raise Exception() Exception
"The data size must be equal to it in data layer.") ValueError: The data size must be equal to it in data layer.