#πŸ”’ uploadin dataset

14 messages Β· Page 1 of 1 (latest)

rough furnace
#

while im tryin to upload my dataset im gettin this erorr
TypeError: Image data of dtype object cannot be converted to float

lofty elkBOT
#

@rough furnace

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

prisma hare
#

can you try cv2.imshow instead?

rough furnace
prisma hare
#

did you remove the space between cv2 and imread?

rough furnace
#

i did nothin changed

prisma hare
#

ah, just try cv2.imshow("img_array",img_array)

#

I think that should fix it because it's expecting 2 args?

#

cv2_imshow only expects 1 afaik

rough furnace
prisma hare
#

is it possible that the directory is not right(?)

#

what happens if you print the img_array?

lofty elkBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.