HOD101s/RockPaperScissor-AI-

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray).

Closed this issue · 7 comments

image

Getting this error while executing. Please give your inputs.

Hi,

Thanks for replying. Here are the links for the dataset and modeling file.

  1. Dataset - https://drive.google.com/drive/folders/1_SXVaBJIAHmcuKrZILKpQqr2AuKmJmuH?usp=sharing
  2. Modeling - https://colab.research.google.com/drive/19MVulE1s-ysGYqpMAP8xEVaktUyuQM4E?usp=sharing
    (I have used the same file in your GitHub repo without changing anything)

Thank you,
Vaishnavi Ambati

Hi,

I'm having the same issue
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray).

imgData = np.array(imgData) labels = np.array(labels)

try using np.asarray() instead

This link might be helpful
https://stackoverflow.com/questions/58636087/tensorflow-valueerror-failed-to-convert-a-numpy-array-to-a-tensor-unsupporte

Tried np.asarray() also but still getting the same error.

Tried np.asarray() also but still getting the same error.
Here, problem is with your imgdata dimensions. Rectify it, will work for sure.

Closing issue due to no more updates