keras problem note

mistake: 

File "D:\Anaconda3\envs\actionRecognition1\lib\site-packages\keras_preprocessing\image\utils.py", line 309, in img_to_array
    x = np.asarray(img, dtype=dtype)
  File "D:\Anaconda3\envs\actionRecognition1\lib\site-packages\numpy\core\_asarray.py", line 83, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: __array__() takes 1 positional argument but 2 were given

solve:

Modify keras_preprocessing\image\utils.py

Guess you like

Origin blog.csdn.net/m0_49621298/article/details/118494685