Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in run train.py #92

Open
wangkepermit opened this issue Jun 13, 2017 · 0 comments
Open

error in run train.py #92

wangkepermit opened this issue Jun 13, 2017 · 0 comments

Comments

@wangkepermit
Copy link

---------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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant