I have this code:
test_image = image.load_img('dataset/kot/cat.1633.jpg', target_size = (64, 64))
test_image = image.img_to_array('cat.1633.jpg')
I get this error:
File "<string>", line 566, in run_nodebug
File "C:\Users\Nixid\Desktop\ta.py", line 37, in <module>
test_image = image.img_to_array('cat.1633.jpg')
File "C:\Users\Nixid\AppData\Local\Programs\Python\Python35\lib\site-
packages\keras_preprocessing\image.py", line 423, in img_to_array
x = np.asarray(img, dtype=backend.floatx())
File "C:\Users\Nixid\AppData\Local\Programs\Python\Python35\lib\site-
packages\numpy\core\numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: could not convert string to float: 'cat.1633.jpg'
How to fix this?