Skip to content

could not convert string to float #1

Description

@fq393

Traceback (most recent call last):
File "model_test.py", line 34, in
image = captcha2text('img/2uB3.jpg')
File "model_test.py", line 27, in captcha2text
vector_list = sess.run(predict, feed_dict={x: image_list, keep_prob: 1})
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 889, in run
run_metadata_ptr)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1089, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: could not convert string to float: 'img/2uB3.jpg'

我自己定义的图片路径 报错诶,不用gen_captcha_text_and_image生成的图片
image = captcha2text('img/2uB3.jpg')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions