ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray).
Closed this issue · 7 comments
Vaishnavi-ambati commented
HOD101s commented
Hi,
If you don't mind please share the jupyter notebook and a sample of the
data you're using for training. I can then help you better.
Regards
…On Tue, 4 Aug, 2020, 9:54 PM Vaishnavi-ambati, ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/50202237/89318799-e9901e80-d69c-11ea-91ac-bd55b1f37ff7.png>
Getting this error while executing. Please give your inputs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI4L5CTXTMVRVVNTAEVTMPTR7AY37ANCNFSM4PUSMQEA>
.
Vaishnavi-ambati commented
Hi,
Thanks for replying. Here are the links for the dataset and modeling file.
- Dataset - https://drive.google.com/drive/folders/1_SXVaBJIAHmcuKrZILKpQqr2AuKmJmuH?usp=sharing
- 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
Benson1198 commented
Hi,
I'm having the same issue
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray).
HOD101s commented
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
Vaishnavi-ambati commented
Tried np.asarray() also but still getting the same error.
Nitin-Rana commented
Tried np.asarray() also but still getting the same error.
Here, problem is with your imgdata dimensions. Rectify it, will work for sure.
HOD101s commented
Closing issue due to no more updates