v2 api demo训练过程中报错
Created by: bushidonggua
报错如下:我的图片应该都是正常的,我用v1 api训练过应该没有太大问题。 [INFO 2017-08-15 23:15:30,010 layers.py:2255] output for conv_20: c = 512, h = 14, w = 14, size = 100352 [INFO 2017-08-15 23:15:30,011 layers.py:2255] output for conv_21: c = 512, h = 14, w = 14, size = 100352 [INFO 2017-08-15 23:15:30,013 layers.py:2255] output for conv_22: c = 512, h = 14, w = 14, size = 100352 [INFO 2017-08-15 23:15:30,014 layers.py:2255] output for conv_23: c = 512, h = 7, w = 7, size = 25088 [INFO 2017-08-15 23:15:30,016 layers.py:2255] output for conv_24: c = 1024, h = 7, w = 7, size = 50176 [INFO 2017-08-15 23:15:30,018 layers.py:2255] output for conv_25: c = 1024, h = 7, w = 7, size = 50176 [INFO 2017-08-15 23:15:30,021 layers.py:2255] output for conv_26: c = 1024, h = 7, w = 7, size = 50176 [INFO 2017-08-15 23:15:30,022 layers.py:2380] output for pool_0: c = 1024, h = 1, w = 1, size = 1024 I0815 23:15:33.664355 20868 GradientMachine.cpp:85] Initing parameters.. I0815 23:15:33.890722 20868 GradientMachine.cpp:92] Init parameters done. Exception in thread Thread-33: Traceback (most recent call last): File "/home/work/chenlimin/paddlepaddle/python27/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/home/work/chenlimin/paddlepaddle/python27/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/home/work/chenlimin/paddlepaddle/python27/lib/python2.7/site-packages/paddle/v2/reader/decorator.py", line 280, in handle_worker r = mapper(sample) File "/home/work/chenlimin/paddlepaddle/demo/Mobile/flowers102/mobilenet/reader.py", line 16, in train_mapper img = paddle.image.simple_transform(img, 256, 224, True) File "/home/work/chenlimin/paddlepaddle/python27/lib/python2.7/site-packages/paddle/v2/image.py", line 284, in simple_transform im = resize_short(im, resize_size) File "/home/work/chenlimin/paddlepaddle/python27/lib/python2.7/site-packages/paddle/v2/image.py", line 158, in resize_short assert im.shape[-1] == 1 or im.shape[-1] == 3 AttributeError: 'NoneType' object has no attribute 'shape'