yusuketomoto / chainer-fast-neuralstyle

Chainer implementation of "Perceptual Losses for Real-Time Style Transfer and Super-Resolution".
MIT License
803 stars 229 forks source link

error in run train.py #92

Open wangkepermit opened 7 years ago

wangkepermit commented 7 years ago

---------below is my command and output--------

root@wangke-S2400SC:~/chainer-fast-neuralstyle# python train.py --style_image ./style.jpg --dataset ./train2014 --output ./models/my num traning images: 40458 40458 iterations, 2 epochs epoch 0 Traceback (most recent call last): File "train.py", line 118, in x[j] = load_image(imagepaths[i*batchsize + j], image_size) File "train.py", line 22, in load_image return xp.asarray(image, dtype=np.float32).transpose(2, 0, 1) File "/usr/local/lib/python2.7/dist-packages/numpy/core/numeric.py", line 531, in asarray return array(a, dtype, copy=False, order=order) File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 528, in getattr raise AttributeError(name) AttributeError: float